#[Help] If {_var1} not working?

1 messages · Page 1 of 1 (latest)

dusky helm
#

You can do set {_var1} to (placeholder "tm_tokens" from player parsed as integer)

sly tapir
#

this part works

dusky helm
#

So what is the problem?

sly tapir
#

problem is around "if {var} > 205

dusky helm
#

yeah

#

you need to do like i said

#

its not parsed as integer

#

so its like "205" (string) instead of 205 (integer)

sly tapir
#

ok, I will try this

dusky helm
#

you need to parse it as integer

sly tapir
#

gimme one sec

dusky helm
#

Okey

sly tapir
dusky helm
#

you wrote it worng

#

wrong

sly tapir
#

with () ?

dusky helm
#

not intiger

#

integer

#

and with ()

sly tapir
#

Thank you!

#

it works 🙂

dusky helm
#

np

sly tapir
#

How can I use var when executing command?
execute server command "/tm take %player%" {_cena1}
like this (example:)
/tm take gamer_nickname 10

#

sorry for my engish

#

I tried putting this inside " but it says 0.
I setted this to 50