08.08.2015, 13:47
You forgot to add brackets on "foreach" loop.
So, it's just executed the last player.
So, it's just executed the last player.
Код:
foreach(Player, i) { mysql_format(handle, query, sizeof(query), "UPDATE 'conturi' SET 'Cash' = '%d' WHERE 'Name' = '%s'",P_Data[i][pCash],GetName(i)); mysql_query(handle, query); }