WTF? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: WTF? (
/showthread.php?tid=244905)
WTF? -
Rokzlive - 29.03.2011
Ok, i really dont know whats wrong with this mysql query. Any Help?
pawn Код:
format(query, sizeof(mysql), "UPDATE `accounts` SET `online` = '1' WHERE `name` = '%s'", pname);
mysql_query(mysql);
Re: WTF? -
s0nic - 29.03.2011
Just remove the
'(s) around the 1..
Like so:
pawn Код:
format(query, sizeof(mysql), "UPDATE `accounts` SET `online` = 1 WHERE `name` = '%s'", pname);
mysql_query(mysql);
Re: WTF? -
Rokzlive - 29.03.2011
OWWWWWWWWWWWWWWWWWWW!
Lol, im a blond i swear.