Solved If {variable} is not set: fail

  • 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.

lordgamadon

New Member
Apr 4, 2020
8
0
1
23
so im having a fail with this so

Code:
If {Kills::%player%} is set to "<none>":
   set {Kills::%player%} to "&cYOU DONT HAVE ANY"
[CODE]
it says
cant understand this event
 
because "<none>" is not a string or text, is just a empty data outputed like a string, so you are comparing a string/text/whatever to nothing. the correct way to compare something that is not set is
Code:
If {Kills::%player%} is not set":
   set {Kills::%player%} to "&cYOU DONT HAVE ANY"
 
Status
Not open for further replies.