Solved Can't compare 'player's exp level' with an integer

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

HypeForMe

Member
Sep 8, 2019
2
0
1
20
Hello, I am having a problem with skript.

Code:
on click:
    if the 4th line of the lore of the player's tool is "&8Level 3":
        if player's level is lower or equal to 2:
            damage player by 5 hearts
            send "&c&lYou are not high enough level to use this item." to the player

That is the skript I am trying to run, but it gives me this error when I try to run it.

Code:
Can't compare 'player's exp level' with an integer (level.sk, line 3: if player's exp level is less than or equal to 1:')

Could it be my skript version?
 
After doing some digging on the internet I have found that I can not use "lower or equal to" I have to use "greater or equal to" with an "else" statement to tell skript that I am looking for a lower number
 
Status
Not open for further replies.