18.04.2015, 10:32
how is it possible to save something in a file using a loop,instead of putting them all i wanna put like item1 = pinfo[playerid][pitem][0],like this..
For(new i=0;i !=MAX_PLAYERS -1;i++)
{
item[i+1][playerid] = pinfo[playerid][pitem][i+1];
}
new item[MAX_item][MAX_PLAYERS];
new dbHandle,query;
mysql_format(dbHandle, query, sizeof(query), "UPDATE `Users` SET `item`='%i',pinfo[playerid][pitem][i+1]);
mysql_tquery(dbHandle, query, "", "");