OMG! one command disables another!
#1

Hi @ll
Look at these errors!

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(185) : warning 225: unreachable code
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(185) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(185) : error 017: undefined symbol "cmd_kick"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(185) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(185) : fatal error 107: too many error messages on one line

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


4 Errors.
I just added this!

pawn Код:
CMD:og(playerid, params[])
{
    new
        gangsterlevel, id;
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        if(sscanf(params, "ui", id, gangsterlevel)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /set_glevel [id] [gangsterlevel]");
        if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
        new
            str[128];
        format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i", PlayerName(playerid), playerid, PlayerName(id), id, gangsterlevel);
        SendClientMessage(playerid, COLOR_YELLOW, str);
        if(INI_Open(getINI(playerid)))
        {
            INI_WriteInt("GangsterLvl", gangsterlevel);
            new
                pts = INI_ReadInt("RespectPts");
            if(pts <= 90)
            {
                INI_WriteInt("RespectPts", pts + 10);
            }
            else
            {
                INI_WriteInt("RespectPts", 100);
            }
            INI_Save();
            INI_Close();
        }
        return 1;
    }
    else return SendClientMessage(playerid,COLOR_RED,"  You are not allowed to use this command!");
My kick command is fucked up! Until I added, everythin' worked fine!
Reply


Messages In This Thread
OMG! one command disables another! - by samtey - 04.08.2011, 15:49
AW: OMG! one command disables another! - by samtey - 04.08.2011, 16:08
Re: OMG! one command disables another! - by Wesley221 - 04.08.2011, 16:13
AW: OMG! one command disables another! - by samtey - 04.08.2011, 16:40
AW: OMG! one command disables another! - by samtey - 04.08.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)