SA-MP Forums Archive
How to use correctly? - 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: How to use correctly? (/showthread.php?tid=662686)



How to use correctly? - qRazor - 08.01.2019

Hi guys, i read this: https://sampforum.blast.hk/showthread.php?tid=647850
I use normal format and mysql_query, and i want to know if this function have memory leaks:
Код HTML:
	format(gQuery, sizeof(gQuery), "UPDATE `users` SET `LastOn`='%02d/%02d/%02d %02d:%02d:%02d' WHERE `ID`='%d'", d, m, y, h, mi, s, PlayerInfo[playerid][pSQLID]);
	mysql_query(SQL, gQuery);



Re: How to use correctly? - Kaliber - 08.01.2019

Update your mysql Plugin and use threaded querys, like
PHP код:
mysql_tquery 
.

Its just much faster.