05.10.2014, 06:42
(
Последний раз редактировалось Ryz; 29.12.2014 в 08:53.
)
....
in 'order clause'
Read the error closely:
Код:
in 'order clause' |
Query("INSERT INTO `playerinfo` (`user`,`password`,`IP`,`date`) VALUES ('%s',%d,'%s',%d)",
SaveStats(playerid)
{
if (!gPlayerInfo[playerid][pLogged]) return 1;
new query[300];
Query("UPDATE `playerinfo` SET `score`='%d',`money`='%d',`kills`='%d',`deaths`='%d',`level`='%d',`operator`='%d',`donor`='%d',`pilot`='%d',`isnavy`='%d',`hourson`='%d', `tag`='%d' WHERE `id`='%i'",
gPlayerInfo[playerid][pScore],gPlayerInfo[playerid][pMoney],gPlayerInfo[playerid][pKills],gPlayerInfo[playerid][pDeaths],
gPlayerInfo[playerid][pAlevel],gPlayerInfo[playerid][pOp],gPlayerInfo[playerid][pDonor],gPlayerInfo[playerid][pPilot],gPlayerInfo[playerid][pNavy], gPlayerInfo[ playerid ][ Hours ], gPlayerInfo[playerid][pTAG],
gPlayerInfo[playerid][pDBID]);
mysql_query(query); //queries
SendClientMessage(playerid,YELLOW,"Stats saved!");
return 1;
}