I have problem with making shop

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

ocip

Member
Oct 31, 2021
3
0
1
24
if clicked slot is 0:
if {balance::%player%} <= 5:
send "&7Complete"
else:
send "&cDont have enough money"

I have problem with {balance::%player%} because it doesnt show the actual balance PLS HELP QUICK
 
if clicked slot is 0:
if {balance::%player%} <= 5:
send "&7Complete"
else:
send "&cDont have enough money"

I have problem with {balance::%player%} because it doesnt show the actual balance PLS HELP QUICK


Debug it. Check what's in the variable by sending it to the player.
 
sorry i dont understand how
[doublepost=1635715496,1635715072][/doublepost]
yeah it just says {balance::my nick}
1: i suggest using uuid of player incase someone changes their name.
2: you have to put %'s around the variable when its in quotes
Code:
command /bal:
  trigger:
    send "%{balance::player}%" to player
 
If clicked slot is 0:
If player's balance >= 79:
Message "Complete"
Else:
"Dont have enough money"
 
Status
Not open for further replies.