event-player doesn't work #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
event-player returns none but when I enter the player's nickname normally, it works.
code that doesn't work:
on region enter:
if "%region%" contains "crab":
execute "SELECT * FROM
testWHERE username= '%event-player%'" in {-sql} and store the result in {_output::*}send "%{_output::username::1}%"
code that works:
on region enter:
if "%region%" contains "crab":
execute "SELECT * FROM
testWHERE username= 'hiayaf'" in {-sql} and store the result in {_output::*}send "%{_output::username::1}%"
probably the same with other expressions...
player object is not serializable, you will need to use %player's name%
ok but if I give such a thing it does not work
execute "UPDATE
testSETdiscoverisle=%{test::%player%}% WHERE username= '%name of player%'" in {-sql}but when I give something like this it works
execute "UPDATE
testSETdiscoverisle=%{test::%player%}% WHERE username= 'hiayaf'" in {-sql}try removing ' ' around the expression
Oh thank you.
One more question, is it possible to send a player's balance from vault in expression
%player's balance%