04.07.2013, 17:50
i am begineer in mysql so i have download a admin script and wants to edit it.
i have found this code for converting unthreaded queries to threaded.
but i don't know where to use it. Please help.
i have found this code for converting unthreaded queries to threaded.
pawn Код:
format(query, sizeof(query), "SELECT name,level,kills,deaths FROM players WHERE name = %s LIMIT 0,1", PlayerName);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows())
{
mysql_fetch_row(data);
sscanf(data, "p<|>s[24]iii", name, level[playerid], kills[playerid], deaths[playerid]);
SendClientMessage(playerid, 0xFFFFFFFF, "I have received your data!");
}
mysql_free_result();