27.09.2015, 09:34
Guess you can try this,
PHP код:
stock SaveStatsForPlayer(playerid)
{
new query[700], query2[500];
mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `IP` = '%s', `Admin` = '%i', `VIP` = '%i', `Deaths` = '%i', `Score` = '%i', `Money` = '%i', `MissionsPlayed` = '%i' WHERE `ID` = '%i'", IP[playerid], pData[playerid][Admin], pData[playerid][VIP], pData[playerid][Deaths], GetPlayerScore(playerid), pData[playerid][Money], pData[playerid][MissionsPlayed]);
mysql_format(mysql, query2, sizeof(query2), "UPDATE `players` SET `VipTime` = '%s', `Warns` = '%i', `Cookies` = '%i', `Jailed` = '%i', `Muted` = '%i', `RegisterDate` = '%s', `Duty` = '%i', `Nopm` = '%i' WHERE `ID` = '%i'", pData[playerid][VipTime], pData[playerid][Warns], pData[playerid][Cookies], pData[playerid][Jailed], pData[playerid][Muted], pData[playerid][RegisterDate], pData[playerid][Duty], pData[playerid][Nopm], pData[playerid][ID]);
mysql_tquery(mysql, query, "", "");
mysql_tquery(mysql, query2, "", "");
}