#Help

1 messages · Page 1 of 1 (latest)

noble mica
#

did u set {cap.%player%} to a number somewhere? because if not, it will be <none>

noble mica
#

@plush meadow did it work?

molten ferry
#

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

livid creek
#

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.

acoustic ember
#

also use list vars

dark fractalBOT
# molten ferry 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
```

loud marsh
livid creek
loud marsh
#

You are clearly using chatgpt

livid creek
#

No, sorry

loud marsh
#

try again

livid creek
#

Chat Gpt Zero

#

Good call

#

but no

loud marsh
#

not downloading that

amber oar
amber oar
#

it is

#

100%