25.08.2012, 13:41
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.