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

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

Discussion in 'Skript' started by Nikolaj Andersen, May 26, 2018.

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

    Joined:
    May 26, 2018
    Messages:
    3
    Likes Received:
    0
    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 (Skript):
    1. command /e*5845åspotåpot:
    2.     trigger:
    3.         if player's balance is greater than or equal to 200:
    4.             give 1 potion of:8194  to player
    5.             remove 200 from player's balance
    6.         else:
    7.             send "&6Du har ikke penge nok!"
    8.  
     
  2. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    385
    Likes Received:
    20
    Try using
    %player's money%
     
  3. N

    Joined:
    May 26, 2018
    Messages:
    3
    Likes Received:
    0
    Thank you for your answer, though i still doesn't seem to work.
     
  4. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    385
    Likes Received:
    20
    Stupid question but do you have installed vault ^^?
    --- Double Post Merged, May 27, 2018, Original Post Date: May 27, 2018 ---
    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
     
  5. N

    Joined:
    May 26, 2018
    Messages:
    3
    Likes Received:
    0
    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.
     
Thread Status:
Not open for further replies.
Loading...