#how to do if arg-1 isn’t *:

1 messages · Page 1 of 1 (latest)

languid spade
#

I need some help rq or make this work.

Command /EcoReset <player>:
if agr-1 is "All":

winter oak
#

We need to know what you're trying to achieve here

languid spade
# winter oak 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 %}%"

winter oak
#

alr ill help u out in a sec

languid spade
trim quarry
#

"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:

winter oak
#
  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
languid spade
winter oak
#

true

languid spade
#

And all isn’t a player I just relised.

#

I made it 2 diffrent commands but 1 of them isn’t working

winter oak
#

ig you can split them

languid spade
# winter oak true

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

winter oak
#

yep i see the issie

languid spade
#

What is it 🙂

#

Should it be looped-players

winter oak
#

"Set looped players {PlayerBalance::%uuid of player%} to 0" doesnt work

languid spade
#

Yes that is the error line

winter oak
#

it should be : command /EcoResetAll: trigger: loop all players: Set {PlayerBalance::%loop-player's uuid%} to 0 broadcast "The Economy Has Been Reset"

languid spade
#

Oh thank you

winter oak
#

Set {PlayerBalance::%loop-player's uuid%} to 0 fixed error line

languid spade
winter oak
#

dw about it, you can ping/dm me if you need more help.