SQLite Errors
#3

When i try to use that i get errors in sscanf.
that is on line 120..heres the code
pawn Код:
CMD:ban(playerid, paramsp[])
{
    new id,reason[128],name[MAX_PLAYER_NAME];
    if(Bit16_Get(g_AdminLevel, playerid) > 1)
    {
        if(sscanf(params, "us[128]", id, reason); return SCM(playerid, COL_RED, "Usage: /ban <Playerid/Part of Name> <Reason>");
        else
        {
            if(IsPlayerConnected(id))
            {
                new string;
                format(string, sizeof(string), "%s has been banned from the server", GetPlayerName(id, name, sizeof(name)));
                SendClientMessageToAll(COL_RED, string);
                Bit1_Set(g_PlayerBanned, id, 1);
                Kick(id);
            }
            else
            {
                Bit1_Set(g_PlayerBanned, id, 1);
            }
        }
    }
    else
    {
        SCM(playerid, COL_RED, "You need to be an admin to use this command!");
    }
    return 1;
}
errors
Код:
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(58) : warning 204: symbol is assigned a value that is never used: "rBan"
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(120) : error 017: undefined symbol "params"
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(120) : error 001: expected token: ")", but found ";"
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(120) : error 036: empty statement
I:\All\Desktop Folders\My Things\Servers\Team Deathmatch\gamemodes\TDM.pwn(120) : fatal error 107: too many error messages on one line

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


4 Errors.
Line 120
pawn Код:
if(sscanf(params, "us[128]", id, reason); return SCM(playerid, COL_RED, "Usage: /ban <Playerid/Part of Name> <Reason>");
Reply


Messages In This Thread
SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:17
Re: SQLite Errors - by Roach_ - 13.09.2012, 14:20
Re: SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:23
Re: SQLite Errors - by Roach_ - 13.09.2012, 14:26
Re: SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:28
AW: SQLite Errors - by BiosMarcel - 13.09.2012, 14:30
Re: SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:31
Re: SQLite Errors - by Roach_ - 13.09.2012, 14:32
Re: SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:33
Re: SQLite Errors - by [HK]Ryder[AN] - 13.09.2012, 14:53

Forum Jump:


Users browsing this thread: 4 Guest(s)