mysql query error
#1

So I'm a little newbie in mysql and I have a little problem I can't solve.

Код:
stock SavePlayerAccount(playerid)
{
	new string[256]; // line 464
	format(string, sizeof(string), "UPDATE `accounts` SET `AdminLevel` = '%d', `Level` = '%d', `Money` = '%d', `Kills` = '%d', `Deaths` = '%d', `Job` = '%d', `Exp` = '%d', `NewPlayer` = '%d', `Age` = '%d', `Origin` = '%s', `Team` = '%d', `Rank` = '%d' WHERE Username= '%s'", PlayerData[playerid][AdminLevel], gPlayerLevel[playerid], GetPlayerMoney(playerid), PlayerData[playerid][Kills], PlayerData[playerid][Deaths], PlayerData[playerid][Job], PlayerData[playerid][Exp], PlayerData[playerid][NewPlayer], PlayerData[playerid][Age], PlayerData[playerid][Origin], gTeam[playerid], gRank[playerid], PlayerName(playerid)); // line 465
	mysql_query(string); // line 466
}
So this is my mysql query when player status updates. The problem is, when I compile it gives me these errors:

Код:
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(464) : error 075: input line too long (after substitutions)
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(465) : error 017: undefined symbol "PlayerDa"
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : warning 217: loose indentation
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : error 017: undefined symbol "ta"
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : warning 215: expression has no effect
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : error 001: expected token: ";", but found "]"
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : error 029: invalid expression, assumed zero
C:\Users\Davis\Desktop\samp\gamemodes\xgmv2.pwn(466) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
I'm really just learning mysql, so any help with this? Thanks!
Reply
#2

Anyone?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)