#Help
1 messages · Page 1 of 1 (latest)
@plush meadow did it work?
Use %player’s uuid% instead of %player% and also the problem idk but I can try to check it later when I’m on my pc
it seems that the issue is with the conditional statement checking if the player has reached the maximum level. Here's a possible fix:
...
on inventory click:
if event-inventory = (metadata tag "vanillaGUI" of player):
cancel event
if index of event-slot is 15:
if {money.%player%} is more than 149999:
if {cap.%player%} is less than 5: # change from "below" to "less than"
send "&4&lUPGRADES &8| &7Your shovel has been upgraded"
remove 150000 from {money.%player%}
add 1 to {cap.%player%}
add 1 to {moneyfindchance.%player%}
else:
send "&4&lUPGRADES &8| &7You reached the max level!"
else:
send "&4&lUPGRADES &8| &7Not enough money!"
...
The issue is likely due to the fact that the "below" keyword is used instead of "less than". The "below" keyword is not recognized by the scripting language and thus is causing the conditional statement to evaluate to false, even when the player's level is less than 5. Changing "below" to "less than" should fix the issue.
also use list vars
Also code block
Code Blocks
To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:
```
Code here
```
Please stop responding with AI generated information.
I never responded with AI
You are clearly using chatgpt
No, sorry
not downloading that
Yes u did stop lying