Weird compiling error
#1

pawn Код:
dcmd_ac(playerid,params[])
{
    #pragma unused params
    new pname[MAX_PLAYER_NAME];
    new string[128];
    if(!strlen(params))
    {
        SendClientMessage(playerid,COLOR_ERROR,"Usage: /ac (Message)");
        return 1;
    }
    /*format(string,sizeof(string),"4[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params);
    IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);*/

    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(AdminLevel[i] == 1)
        {
            format(string,sizeof(string),"[ADMIN CHAT] %s(%d): %s",pname(playerid),playerid,params);
            SendClientMessage(i,COLOR_PINK,string);
        }
    }
    return 1;
}
Error
Код:
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(996) : error 012: invalid function call, not a valid address
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(996) : warning 215: expression has no effect
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(996) : error 001: expected token: ";", but found ")"
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(996) : error 029: invalid expression, assumed zero
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(996) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply


Messages In This Thread
Weird compiling error - by _Khaled_ - 24.08.2012, 15:58
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:02
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 16:10
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:14
Re: Weird compiling error - by kbalor - 24.08.2012, 16:16
AW: Weird compiling error - by Mellnik - 24.08.2012, 16:18
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:23
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 20:08
Re: Weird compiling error - by leonardo1434 - 24.08.2012, 21:24
Re: Weird compiling error - by clarencecuzz - 24.08.2012, 21:38

Forum Jump:


Users browsing this thread: 2 Guest(s)