#how to do if arg-1 isn’t *:
1 messages · Page 1 of 1 (latest)
We need to know what you're trying to achieve here
Command /EcoReset <player>:
if agr-1 is "All":
loop all players:
Set all looped players {PlayerBalance::%uuid of player%} to 0
send "The Economy Has Been Reset"
else:
Set {PlayerBalance::%uuid of Arg-1 %} to 0
send "Arg-1 Now Has £%{PlayerBalance::%uuid of Arg-2 %}%"
alr ill help u out in a sec
Okay thanks
"how to do if arg-1 isn’t *"
like this, i guess? I'm having trouble interpreting, sorry.
if arg-1 isn't "thing":
if arg-1 isn't 1:
if arg-1 is 1:
if arg-1 is "All":
loop all players:
Set {PlayerBalance::%loop-player's uuid%} to 0
broadcast "The Economy Has Been Reset"
else:
Set {PlayerBalance::%arg-1's uuid%} to 0
send "%Arg-1% Now Has £%{PlayerBalance::%arg-1's uuid%}%"``` @languid spade This might work
Arg-1 carnt be all because to command is referencing players
true
And all isn’t a player I just relised.
I made it 2 diffrent commands but 1 of them isn’t working
ig you can split them
command /EcoResetAll:
trigger:
loop all players:
Set looped players {PlayerBalance::%uuid of player%} to 0
send "The Economy Has Been Reset"
The 4th line is the error
yep i see the issie
"Set looped players {PlayerBalance::%uuid of player%} to 0" doesnt work
Yes that is the error line
it should be : command /EcoResetAll: trigger: loop all players: Set {PlayerBalance::%loop-player's uuid%} to 0 broadcast "The Economy Has Been Reset"
Oh thank you
Set {PlayerBalance::%loop-player's uuid%} to 0 fixed error line
Tysm Ik your someone that’s helping me a lot 😅
dw about it, you can ping/dm me if you need more help.