07.06.2015, 22:52
Hello guys.. How some prob with saving player data at disconnect... Maybe some one could help,,
ERROR:
With best regards Scrillex.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerHealth(playerid,pInfo[playerid][Health]);
GetPlayerArmour(playerid,pInfo[playerid][Armour]);
new query[256], Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
mysql_format(mysql, query, sizeof(query), "UPDATE `user` SET `Admin`=%d, `VIP`=%d, `Money`=%d, `posX`=%f, `posY`=%f, `posZ`=%f, `Health` = '%f', `Armour` = '%f', `Age`=%d, `Accent`=%s, `Gender`=%d,\
`Faction`=%d, `Leader`=%d, `Member`=%d, `Gang`=%d, `StreetRespect`=%d, `Respect`=%d, `Level`=%d, `FightingStyle`=%d,\
`WantedLevel`=%d, `WantedLevel`=%d, `CMDTIMER1`=%d, `CMDTIMER2`=%d,`CMDTIMER3`=%d, `CMDTIMER4`=%d, `Bodytype`=%d, `Muscle`=%d, WHERE `ID`=%d",\
pInfo[playerid][Admin], pInfo[playerid][VIP], pInfo[playerid][Money], pos[0], pos[1], pos[2], pInfo[playerid][Health],pInfo[playerid][Armour],
pInfo[playerid][Age], pInfo[playerid][Accent], pInfo[playerid][Gender], pInfo[playerid][Faction],
pInfo[playerid][Leader], pInfo[playerid][Member], pInfo[playerid][Gang], pInfo[playerid][StreetRespect],
pInfo[playerid][Respect], pInfo[playerid][Level], pInfo[playerid][FightingStyle], pInfo[playerid][WantedLevel],pInfo[playerid][CMDTIMER1],
pInfo[playerid][CMDTIMER2], pInfo[playerid][CMDTIMER3], pInfo[playerid][CMDTIMER4], pInfo[playerid][Bodytype], pInfo[playerid][Muscle], pInfo[playerid][ID]);
mysql_tquery(mysql, query, "", "");
return 1;
}
pawn Код:
error 075: input line too long (after substitutions)
error 017: undefined symbol "pInf"
warning 217: loose indentation
rror 017: undefined symbol "o"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line