Solved Kit 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 comminuty!

    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.

BestGamerNL

Member
Apr 25, 2017
38
1
0
25
Does someone know why i get this error
http://prntscr.com/gopb9f

my code is

code_language.skript:
        if arg 1 is "ocstarteroc":
            set {_waited.kit.ocstarteroc.%uuid of player%} to difference between {kit.ocstarteroccheck.%uuid of player%} and now
            if {_waited.kit.ocstarteroc.%uuid of player%} is less than {@timestarter}:
                message "&cYou have used this kit already. Try again in &4%difference between {@timestarter} and {_waited.kit.ocstarteroc.%uuid of player%}%&c."
                stop
            else:
                set {kit.ocstarteroccheck.%uuid of player%} to now
                message "&a&lstarter &7kit selected!"
                give 1 diamond sword named "&a&lStarters Sword" to player
                give 1 bow named "&a&lStarters Bow" to player
                give 64 arrow to player
                give 16 steak to player
                give 5 golden apple to player
                give 8 ender pearl to player
                give 16 xp bottle to player
                give 16 obsidian to player
                give 16 tnt to player
                equip player with iron Helmet named "&a&lStarters Helmet"
                equip player with iron ChestPlate named "&a&lStarters ChestPlate"
                equip player with iron Leggings named "&a&lStarters Leggings"
                equip player with iron Boots named "&a&lStarters Boots"
 
Does someone know why i get this error
http://prntscr.com/gopb9f

my code is

code_language.skript:
        if arg 1 is "ocstarteroc":
            set {_waited.kit.ocstarteroc.%uuid of player%} to difference between {kit.ocstarteroccheck.%uuid of player%} and now
            if {_waited.kit.ocstarteroc.%uuid of player%} is less than {@timestarter}:
                message "&cYou have used this kit already. Try again in &4%difference between {@timestarter} and {_waited.kit.ocstarteroc.%uuid of player%}%&c."
                stop
            else:
                set {kit.ocstarteroccheck.%uuid of player%} to now
                message "&a&lstarter &7kit selected!"
                give 1 diamond sword named "&a&lStarters Sword" to player
                give 1 bow named "&a&lStarters Bow" to player
                give 64 arrow to player
                give 16 steak to player
                give 5 golden apple to player
                give 8 ender pearl to player
                give 16 xp bottle to player
                give 16 obsidian to player
                give 16 tnt to player
                equip player with iron Helmet named "&a&lStarters Helmet"
                equip player with iron ChestPlate named "&a&lStarters ChestPlate"
                equip player with iron Leggings named "&a&lStarters Leggings"
                equip player with iron Boots named "&a&lStarters Boots"
24 hourses isn't a timespan. Maybe you mean 24 hours?
 
I may be wrong but I think it is due to the option.
You can try to do something like setting the option to a temporary variable and then check it off the variable instead of the option. You may want to parse it as a timespan/number, test around with it a bit :b.
 
I may be wrong but I think it is due to the option.
You can try to do something like setting the option to a temporary variable and then check it off the variable instead of the option. You may want to parse it as a timespan/number, test around with it a bit :b.
options are replaced at parse time, it would be exactly the same result. He just spelled hours wrong
 
Status
Not open for further replies.