Function Error
#7

I tried this, and it will fix te errors, but I won't save the account..

Код:
stock SaveAccount(playerid)
{
    format(largequery, sizeof(largequery), "UPDATE `accounts` SET `username` = '%s', `spassword` = '%s', `emailaddress` = '%s', `ipaddress` = '%s', `language` = '%d', `autologin` = '%d'", PlayerName[playerid], AccountInfo[playerid][spassword], AccountInfo[playerid][emailaddress], AccountInfo[playerid][ipaddress], AccountInfo[playerid][language], AccountInfo[playerid][autologin]);
	format(largequery, sizeof(largequery), "%s, `age` = '%d', `carlicense` = '%d', `flylicense` = '%d', `boatlicense` = '%d', `viprank` = '%d', `ownedproperties` = '%d'",largequery, AccountInfo[playerid][age], AccountInfo[playerid][carlicense], AccountInfo[playerid][flylicense], AccountInfo[playerid][boatlicense], AccountInfo[playerid][viprank], AccountInfo[playerid][ownedproperties]);
	format(largequery, sizeof(largequery), "%s, `warnreason1` = '%s', `warnreason2` = '%s', `warnreason3` = '%s', `serversounds` = '%d', `phone` = '%d'",largequery, AccountInfo[playerid][warnreason1], AccountInfo[playerid][warnreason2], AccountInfo[playerid][warnreason3],AccountInfo[playerid][serversounds], AccountInfo[playerid][phone]);
	format(largequery, sizeof(largequery), "%s, `positionx` = '%f', `positiony` = '%f', `positionz` = '%f', `interior` = '%f', `lastseen` = '%s' WHERE `identification` = '%d", largequery, AccountInfo[playerid][positionx], AccountInfo[playerid][positiony], AccountInfo[playerid][positionz],AccountInfo[playerid][interior], AccountInfo[playerid][lastseen], AccountInfo[playerid][identification]);
	mysql_query(largequery);
}
Reply


Messages In This Thread
Function Error - by Battleman - 06.05.2011, 20:55
Re: Function Error - by System64 - 06.05.2011, 21:03
Re: Function Error - by Battleman - 06.05.2011, 21:04
Re: Function Error - by System64 - 06.05.2011, 21:11
Re: Function Error - by Battleman - 06.05.2011, 21:14
Re: Function Error - by Battleman - 06.05.2011, 21:52
Re: Function Error - by Battleman - 06.05.2011, 22:44
Re: Function Error - by Kenoja - 06.05.2011, 23:17
Re: Function Error - by Battleman - 07.05.2011, 10:25
Re: Function Error - by Battleman - 07.05.2011, 11:03

Forum Jump:


Users browsing this thread: 2 Guest(s)