Admin Chat Error
#6

pawn Код:
dcmd_ac(playerid,params[])
{
    if( AdminLevel[ playerid ] =< 1 ) return 0;
    if(!strlen(params)) return SendClientMessage(playerid,COLOR_ERROR,"Usage: /ac (Message)");
    new pname[MAX_PLAYER_NAME];
    new string[128];
    format(string,sizeof(string), "[ADMIN CHAT] %s(%d): %s",pname(playerid), playerid, params); // error line

    SendAdminMessage( AdminLevel[ playerid ], COLOR_PINK, string ); // AdminLevel[ playerid ] his level and color and then string
    //format(string,sizeof(string),"4[ADMIN CHAT] %s(%d): %s",PlayerName(playerid),playerid,params);
    //IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
    return 1;
}
Код:
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(105) : warning 203: symbol is never used: "level"
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : warning 211: possibly unintended assignment
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : error 029: invalid expression, assumed zero
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : warning 215: expression has no effect
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : error 001: expected token: ";", but found ")"
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : error 029: invalid expression, assumed zero
D:\SAMP\Server\SACCNR [0.3e R2]\gamemodes\SACCNR.pwn(1070) : 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
Admin Chat Error - by _Khaled_ - 25.08.2012, 13:17
Re: Admin Chat Error - by FalconX - 25.08.2012, 13:28
Re: Admin Chat Error - by _Khaled_ - 25.08.2012, 13:34
Re: Admin Chat Error - by _Khaled_ - 25.08.2012, 13:36
Re: Admin Chat Error - by FalconX - 25.08.2012, 13:37
Re: Admin Chat Error - by _Khaled_ - 25.08.2012, 13:41
Re: Admin Chat Error - by FalconX - 25.08.2012, 13:43
Re: Admin Chat Error - by _Khaled_ - 25.08.2012, 13:48
Re: Admin Chat Error - by FalconX - 25.08.2012, 13:51
Re: Admin Chat Error - by _Khaled_ - 25.08.2012, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)