Solved Experience Level of player

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

Vexio

Active Member
Jan 26, 2017
92
10
8
23
California
Skript Version: Skript 2.2 (dev20c)
Skript Author: Bensku
Minecraft Version: 1.11.2
---
Code:
code_language.skript:
else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
                remove 1 exp level from player
                set {color::%player%} to "&4"
                send "&aChat color set to &4&nDark Red&r&a."
            else:
                send "&c&oYou don't have enough &r&cEXP Levels&c&o."

Errors on Reload:
https://ironwolfmc.net/paste/view/raw/e9075e18

Addons using (including versions):
skQuery

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Different version numbers, nothing. :emoji_frowning:

-------------------------
SOLUTION
Found it on njol.ch :emoji_slight_smile:

e5vd712fvVbDhIMhfK0vfBiOvlEHeE.png
 
Last edited:
  • Like
Reactions: Hexivoid
code_language.skript:
else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
                remove 1 exp level from player
                set {color::%player%} to "&4"
                send "&aChat color set to &4&nDark Red&r&a."
            else:
                send "&c&oYou don't have enough &r&cEXP Levels&c&o."

You have indentation error,
code_language.skript:
else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
should be
code_language.skript:
    else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
 
You have indentation error,
code_language.skript:
else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
should be
code_language.skript:
    else if arg 1 is "darkRed":
            if player's exp level is greater than or equal to 1:
That's because it's just a snippet from the code, and I didn't include the Tab in front of it. the Syntax is the issue.
 
The version of Skript that you are using is too instable (such as it is a version with the experimental new parser) and outdated, you should be using the dev23 which also supports the 1.11.2
 
Status
Not open for further replies.