on script load:
set {sql} to the database "mysql://xxxx:3306/xxxx?user=xxxxxxx&password=xxxxxxx&useSSL=false"
#command /dbtest:
# trigger:
# execute "select * from table" in {sql} and store the result in {output::*}
on first join:
set {_player} to name of player
execute "INSERT INTO `svr68553`.`MCgracze` (`ID` ,`Nick` ,`Rank`) VALUES (NULL , '%{_player}%', '23');" in {sql}
Mianowicie jedyne co mi nie działa to zmienna %{_player}% w insercie do SQL. Proszę o pomoc/podpowiedź.
Pytanie
slifjo 0
Witam, mam problem z tym skryptem:
on script load: set {sql} to the database "mysql://xxxx:3306/xxxx?user=xxxxxxx&password=xxxxxxx&useSSL=false" #command /dbtest: # trigger: # execute "select * from table" in {sql} and store the result in {output::*} on first join: set {_player} to name of player execute "INSERT INTO `svr68553`.`MCgracze` (`ID` ,`Nick` ,`Rank`) VALUES (NULL , '%{_player}%', '23');" in {sql}
Mianowicie jedyne co mi nie działa to zmienna %{_player}% w insercie do SQL. Proszę o pomoc/podpowiedź.
Edytowane przez WojciuOdnośnik do komentarza
Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.