Greater than or equal to Issue

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

Only_Dans

Member
Dec 19, 2021
4
0
1
34
My script only works if I have exactly 10000. If I have more then 10000 it tells me "You don't have enough money!" It seems like it's not recognizing the <. Can someone tell me how to resolve this?

command /rsp:
description: This will buy you back to life for $10000
permission: sk.respawn
permission message: &cYou cannot preform this command!
trigger:
if balance of player <= 10000:
remove 10000 from player's balance
set player's gamemode to survival
message "&2&lYou have been revived!" to player
if balance of player > 10000:
message "&4&lYou don't have enough money!" to player
 
Status
Not open for further replies.