How is it right?
#1

How is it right? Variant 1 or 2? (Use MYSQL R39-2)
Query or TQuery?

Variant 1
Код HTML:
mysql_format(MySQLCon, query, sizeof(query), "UPDATE `players` SET `Admin`=%d WHERE `ID`=%d", pInfo[id][pAdmin], pInfo[id][pID]);
mysql_tquery(MySQLCon, query);
Variant 2
Код HTML:
mysql_format(MySQLCon, query, sizeof(query), "UPDATE `players` SET `Admin`=%d WHERE `ID`=%d", pInfo[id][pAdmin], pInfo[id][pID]);
mysql_query(MySQLCon, query);
Reply
#2

Код:
new buffer[512];
format(buffer,sizeof buffer,"UPDATE players SET Admin='%d' WHERE ID='%d'",pInfo[id][pAdmin],pInfo[id][pID]);
mysql_query(MySQLCon,buffer);
Reply
#3

Waiting for other opinions.
Reply
#4

http://forum.sa-mp.com/showpost.php?...56&postcount=2
Reply
#5

I'd prefer threaded queries, so Variant 1 it is.

Brief explanation.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)