#how do i make this work

1 messages · Page 1 of 1 (latest)

fierce skiff
#
command /tokens [<text>]: 
    trigger: 
        if arg-1 is "help"
            send "&6----- Tokens Help -----" to player
            send "&6 /tokens pay <player> <amount> &r Sends a player tokens" to player
            send "&6/tokens balance &r sends your token balance" to player
            send "&6/tokens balance <player> &rshows other peoples tokens" to player
            send "&6/tokens top &r shows the top 10 richest players in tokens" to player
            send "&6/tokens shop &rOpens the token shop" to player
        if arg-1 is "balance" 
            send "&6you have %{%players%.tokens}% tokens"
        if arg-1 is "shop"    
            open {_tshopgui} to player
#

saying this

zinc drum
#

remove the - between arg and 1

#

like this :

if arg 1 is "help"
fierce skiff
#

still getting same error

zinc drum
#

what skript are you using?

#

OHH

#

Im dumb

#

just add a colon

zinc drum
fierce skiff
zinc drum
#

it means that u need to delete the spaces and make them tabs because for some reasong skript doesnt combine spaces and tabs tg

fierce skiff
#

ive messed around with it like 20 times it dont work

zinc drum
#
command /tokens [<text>]: 
    trigger: 
        if arg 1 is "help":
            send "&6----- Tokens Help -----" to player
            send "&6 /tokens pay <player> <amount> &r Sends a player tokens" to player
            send "&6/tokens balance &r sends your token balance" to player
            send "&6/tokens balance <player> &rshows other peoples tokens" to player
            send "&6/tokens top &r shows the top 10 richest players in tokens" to player
            send "&6/tokens shop &rOpens the token shop" to player
        if arg-1 is "balance" 
            send "&6you have %{%players%.tokens}% tokens"
        if arg-1 is "shop"    
            open {_tshopgui} to player
#

copy that and paste it over ur original code ^

#

it should have everything correct

fierce skiff
#

ty, but idk why but the skript doesnt work, it just sends how many tokens i have

#

nothing else

zinc drum
#

;-;

#

what

fierce skiff
#

no matter what i put

#

like

#

/tokens shop or /tokens or /tokens balance it just shows this line of code

send "&6you have %{%players%.tokens}% tokens"