stock CMDMessageToAdmins(playerid,command[]) { if(ServerInfo[AdminCmdMsg] == 0) return 1; new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[ADMIN] %s has used the command %s",string,command); return MessageToAdmins(blue,string); }
C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16343) : warning 217: loose indentation C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16343) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16343) : error 017: undefined symbol "MessageToAdmins" C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16343) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16343) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][Level] >= 1)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}
stock CMDMessageToAdmins(playerid,command[])
{
if(!ServerInfo[AdminCmdMsg])
{
return 1;
}
else
{
new string[128];
GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"[ADMIN] %s has used the command %s",string,command);
return MessageToAdmins(blue,string);
}
}
stock CMDMessageToAdmins(playerid,command[]) { if(!ServerInfo[AdminCmdMsg]) { return 1; } else { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[ADMIN] %s has used the command %s",string,command); return MessageToAdmins(blue,string); } }
C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(1630 : warning 217: loose indentation C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(1630 : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(1630 : error 017: undefined symbol "CMDMessageToAdmins" C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16310) : error 017: undefined symbol "ServerInfo" C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16310) : error 017: undefined symbol "AdminCmdMsg" C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16310) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\GTA San Andreas\le ptiroman\gamemodes\LePtiRomand.pwn(16310) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |