event-player doesn't work #17
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/skript-db#17
Loading…
Reference in New Issue
Block a user
No description provided.
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
test
WHERE 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
test
WHERE 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
test
SETdiscoverisle
=%{test::%player%}% WHERE username= '%name of player%'" in {-sql}but when I give something like this it works
execute "UPDATE
test
SETdiscoverisle
=%{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%