17.12.2013, 00:30
hi,
if i save my players data like this for a player on disconnect its working but not when i do it in a timer for every player.
What is wrong with this code?
Cant i use it like this in a loop for every player?
Please help, +rep!
if i save my players data like this for a player on disconnect its working but not when i do it in a timer for every player.
What is wrong with this code?
Cant i use it like this in a loop for every player?
Please help, +rep!
pawn Код:
foreach(Player,i)
{
new query[128],pname[24];
GetPlayerName(i, pname, 24);
format(query, sizeof(query), "UPDATE Users SET Score=%d, Kills=%d WHERE name='%s'",GetPlayerScore(i),kills[i],pname);
mysql_query(query);
}