"-identifier-", but found "-integer value-"
#1

I was just playing around with some MySql registration script and I got unexpected errors:
Код:
C:\Users\Giedrius\Desktop\samp server\gamemodes\001.pwn(130) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Giedrius\Desktop\samp server\gamemodes\001.pwn(131) : error 001: expected token: "-identifier-", but found "-integer value-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
The code is:
Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(Logged[playerid] == 1)
    {
        new score = GetPlayerScore(playerid); //line 130
        new money = GetPlayerMoney(playerid); //line 131
        new query[200], pname[24];
        GetPlayerName(playerid, pname, 24); 
        format(query, sizeof(query), "UPDATE playerdata SET score=%d, money=%d WHERE user='%s'", score, money, pname);
        mysql_query(query);
    }
    return 1;
}
How can I fix this ?
Reply


Messages In This Thread
"-identifier-", but found "-integer value-" - by gedramens - 13.07.2012, 16:16

Forum Jump:


Users browsing this thread: 3 Guest(s)