Use or Not? - 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)
+--- Thread: Use or Not? (
/showthread.php?tid=620220)
Use or Not? -
KessMan - 27.10.2016
In mysql R40 is no longer in need of strings for updates query?
Exemple,
R33+:
Код HTML:
new string [50];
mysql_format(SQLCon, string, sizeof(string), "UPDATE `players` SET `Clans`=-1 WHERE `user`='%s'", pName(playerid)),
mysql_tquery(SQLCon, string);
R40+:
Код HTML:
mysql_tquery(g_Sql, "UPDATE `players` SET `Clans`=-1 WHERE `user`='%s'", pName(playerid));
Re: Use or Not? -
Kaliber - 27.10.2016
Sure it is...you just did the wrong usage...look parameters:
https://sampwiki.blast.hk/wiki/MySQL/R40#mysql_tquery