1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Kit error

Discussion in 'Skript' started by BestGamerNL, Sep 23, 2017.

Thread Status:
Not open for further replies.
  1. BestGamerNL

    BestGamerNL Member

    Joined:
    Apr 25, 2017
    Messages:
    38
    Likes Received:
    1
    Does someone know why i get this error
    http://prntscr.com/gopb9f

    my code is

    Code (Skript):
    1.         if arg 1 is "ocstarteroc":
    2.             set {_waited.kit.ocstarteroc.%uuid of player%} to difference between {kit.ocstarteroccheck.%uuid of player%} and now
    3.             if {_waited.kit.ocstarteroc.%uuid of player%} is less than {@timestarter}:
    4.                 message "&cYou have used this kit already. Try again in &4%difference between {@timestarter} and {_waited.kit.ocstarteroc.%uuid of player%}%&c."
    5.                 stop
    6.             else:
    7.                 set {kit.ocstarteroccheck.%uuid of player%} to now
    8.                 message "&a&lstarter &7kit selected!"
    9.                 give 1 diamond sword named "&a&lStarters Sword" to player
    10.                 give 1 bow named "&a&lStarters Bow" to player
    11.                 give 64 arrow to player
    12.                 give 16 steak to player
    13.                 give 5 golden apple to player
    14.                 give 8 ender pearl to player
    15.                 give 16 xp bottle to player
    16.                 give 16 obsidian to player
    17.                 give 16 tnt to player
    18.                 equip player with iron Helmet named "&a&lStarters Helmet"
    19.                 equip player with iron ChestPlate named "&a&lStarters ChestPlate"
    20.                 equip player with iron Leggings named "&a&lStarters Leggings"
    21.                 equip player with iron Boots named "&a&lStarters Boots"
     
  2. Best Answer:
    Post #2 by glowgrew, Sep 24, 2017
  3. glowgrew

    glowgrew Active Member

    Joined:
    Jan 26, 2017
    Messages:
    99
    Likes Received:
    7
    24 hourses isn't a timespan. Maybe you mean 24 hours?
     
  4. Orangejuiceyummy

    Joined:
    Jan 26, 2017
    Messages:
    20
    Likes Received:
    0
    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.
     
  5. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    options are replaced at parse time, it would be exactly the same result. He just spelled hours wrong
     
Thread Status:
Not open for further replies.

Share This Page

Loading...