Database errors?
#1

Hello,
I am getting these errors while compiling
Код:
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(84) : error 012: invalid function call, not a valid address
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(84) : warning 215: expression has no effect
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(84) : error 001: expected token: ";", but found ")"
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(84) : error 029: invalid expression, assumed zero
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(84) : fatal error 107: too many error messages on one line

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


4 Errors.
Here is the code
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        Query[ 200 ],
        name[ MAX_PLAYER_NAME ]
    ;
    GetPlayerName(playerid, name, sizeof(name));
    if(Bit1_Get(g_PlayerLogged, playerid) == 1)//I am using rBits by RyDeR`
    {
        format(Query, sizeof(Query),"UPDATE `USERS` SET SCORE = '%d', KILLS = '%d', DEATHS = '%d', CASH = '%d', ADMINLEVEL = '%d', VIPLEVEL = '%d' WHERE `NAME` = '%s'", GetPlayerScore(playerid), Kills(playerid), Deaths(playerid), GetPlayerMoney(playerid), Bit16_Get(g_AdminLevel, playerid), Bit16_Get(g_VipLevel, playerid),DB_Escape(name));//Line 84(The one with errors)
        db_query(Database, Query);
        Bit1_Set(g_PlayerLogged, playerid, false);
    }
    return 1;
}
Any help would be appreciated
Please Help me here also if you can - https://sampforum.blast.hk/showthread.php?tid=377051
Reply


Messages In This Thread
Database errors? - by [HK]Ryder[AN] - 13.09.2012, 04:56
Re: Database errors? - by TheBlackKnight - 13.09.2012, 06:07
Re: Database errors? - by [HK]Ryder[AN] - 13.09.2012, 07:23
Re: Database errors? - by Eric - 13.09.2012, 07:24
Re: Database errors? - by [HK]Ryder[AN] - 13.09.2012, 08:43
Re: Database errors? - by Deal-or-die - 13.09.2012, 08:48
Re: Database errors? - by mamorunl - 13.09.2012, 09:36

Forum Jump:


Users browsing this thread: 3 Guest(s)