Hello, how does "$ thread" work?
Does it run all following lines in the new thread or just one single following line?
If I have something like:
Are "$ thread" above SQL updates necesary, or is it sufficient to have "$ thread" at the start?
Does it run all following lines in the new thread or just one single following line?
If I have something like:
code_language.skript:
on join:
set {_player} to player
$ thread
set {_isset} to text from url "someUrl/statistics?a=isset&player=%player%"
set {_now} to text from url "someUrl/statistics?a=now"
if {_isset} is "1":
$ thread
update "UPDATE `playerstatistic` SET `lastlogin`='%{_now}%' WHERE playername LIKE '%{_player}%'"
else:
message "NIC"
$ thread
update "INSERT INTO `playerstatistic` (`playername`, `lastlogin`, `lastlogout`) VALUES ('%{_player}%', '%{_now}%', '');"
Are "$ thread" above SQL updates necesary, or is it sufficient to have "$ thread" at the start?