24.08.2012, 15:58
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;
}
Код:
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.