Solved Custom function error?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Avery_s

New Member
May 4, 2019
7
0
0
Hello, I'm trying to make my custom function. Annnd It doesn't works well. Could someone help out me?

code_language.skript:
function level_point(num: integer , player: player , text: text):
 add {_num} to {level.point.%{text}%}
 send "Level up!" to {_player}

code_language.skript:
on break:
 level_point(90 , player , player's uuid)

After I load this, there is error with a message "The function 'level_point' requires 3 arguments , but only 2 are given" Although I use 3 arg. Please help me T-T
 
Last edited:
Hello, I'm trying to make my custom function. Annnd It doesn't works well. Could someone help out me?

code_language.skript:
function level_point(num: integer , player: player , text: text):
 add {_num} to {level.point.%{text}%}
 send "Level up!" to {_player}

code_language.skript:
on break:
 level_point(90 , player , player's uuid)

After I load this, there is error with a message "The function 'level_point' requires 3 arguments , but only 2 are given" Although I use 3 arg. Please help me T-T
Try `uuid of player` instead of `player's uuid`
 
  • Like
Reactions: Avery_s
Status
Not open for further replies.