20.01.2015, 18:53
Example code
pawn Код:
new strcatstring[300];
mysql_format(mysql, strcatstring, sizeof(strcatstring), "UPDATE `users` SET `score`=%d, `money`=%d,",
GetPlayerScore(playerid),GetPlayerMoney(playerid), /* variables*/);
strcat(query, strcatstring);
mysql_format(mysql, strcatstring, sizeof(strcatstring), "`x`=%d, `y`=%d, `z`=%d WHERE username = '%e'",
PlayerInfo[playerid][x],/* variables*/);
strcat(query, strcatstring);
mysql_tquery(mysql, query, "", "");