06.05.2011, 20:55
I get an error by this function, on the red line.
error 037: invalid string (possibly non-terminated string)
error 017: undefined symbol "UPDATE"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Код:
stock SaveAccount(playerid) { format(largequery, sizeof(largequery), "UPDATE `accounts` SET `username` = '%s', `spassword` = '%s', `emailaddress` = '%s', `ipaddress` = '%s', `language` = '%d', `age` = '%d', `carlicense` = '%d', `flylicense` = '%d', `boatlicense` = '%d', `viprank` = '%d', `ownedproperties` = '%d', `warnreason1` = '%s', `warnreason2` = '%s', `warnreason3` = '%s', `serversounds` = '%d', `phone` = '%d', `positionx` = '%f', `positiony` = '%f', `positionz` = '%f', `interior` = '%f', `lastseen` = '%f' WHERE `identification` = '%d'", PlayerName[playerid], AccountInfo[playerid][spassword], AccountInfo[playerid][emailaddress], AccountInfo[playerid][ipaddress], AccountInfo[playerid][language], AccountInfo[playerid][age], AccountInfo[playerid][carlicense], AccountInfo[playerid][flylicense], AccountInfo[playerid][boatlicense], AccountInfo[playerid][viprank], AccountInfo[playerid][ownedproperties], AccountInfo[playerid][warnreason1], AccountInfo[playerid][warnreason2], AccountInfo[playerid][warnreason3], AccountInfo[playerid][serversounds], AccountInfo[playerid][phone], AccountInfo[playerid][positionx], AccountInfo[playerid][postiony], AccountInfo[playerid][positionz], AccountInfo[playerid][interior], AccountInfo[playerid][lastseen], AccountInfo[playerid][identification]); mysql_query(query); }
error 017: undefined symbol "UPDATE"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line