if player's balance is more greater or equal to doesn't work

  • 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.
May 26, 2018
3
0
0
23
Skript version: 2.2-Fixes-V8b
Minecraft version: Bukkit 1.8
Addons: Wildskript, SkQuery(3.21.4), SkRayFall, Umbaska(3.3)

Hello, my problem is whenever I reload the skript i get an error saying "Can't compare 'player's balance' with an integer. I've tried to search the forums for a solution, but couldn't find anything. If you have the solution I would be very grateful if you could help me out!
https://gyazo.com/5bb86d1c865ea74205c917cd82a13dba

code_language.skript:
command /e*5845åspotåpot:
    trigger:
        if player's balance is greater than or equal to 200:
            give 1 potion of:8194  to player
            remove 200 from player's balance
        else:
            send "&6Du har ikke penge nok!"
 
Skript version: 2.2-Fixes-V8b
Minecraft version: Bukkit 1.8
Addons: Wildskript, SkQuery(3.21.4), SkRayFall, Umbaska(3.3)

Hello, my problem is whenever I reload the skript i get an error saying "Can't compare 'player's balance' with an integer. I've tried to search the forums for a solution, but couldn't find anything. If you have the solution I would be very grateful if you could help me out!
https://gyazo.com/5bb86d1c865ea74205c917cd82a13dba

code_language.skript:
command /e*5845åspotåpot:
    trigger:
        if player's balance is greater than or equal to 200:
            give 1 potion of:8194  to player
            remove 200 from player's balance
        else:
            send "&6Du har ikke penge nok!"
Try using
%player's money%
 
Thank you for your answer, though i still doesn't seem to work.
Stupid question but do you have installed vault ^^?
[doublepost=1527407305,1527407026][/doublepost]
Thank you for your answer, though i still doesn't seem to work.
Actually 'player's balance' should work with skript 2.2 and vault. Maybe it'll work using another version of skript? Why don't you use 'Skript 2.2 bensku-dev35b' It should work fine with paperspigot on 1.8
 
Wow, I'm stupid.. xD Thank you! I haven't played Minecraft in a year and wanted to start again. I knew I forgot something.
 
Status
Not open for further replies.