22.01.2016, 01:59
pawn Код:
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1) if(PlayerInfo[i][Level] >= 1 || IsPlayerAdmin[i]) SendClientMessage(i, color, string);
}
return 1;
}
pawn Код:
D:\3x-TCTDM\gamemodes\TCTDM.pwn(12950) : error 028: invalid subscript (not an array or too many subscripts): "IsPlayerAdmin"
D:\3x-TCTDM\gamemodes\TCTDM.pwn(12950) : warning 215: expression has no effect
D:\3x-TCTDM\gamemodes\TCTDM.pwn(12950) : error 001: expected token: ";", but found "]"
D:\3x-TCTDM\gamemodes\TCTDM.pwn(12950) : error 029: invalid expression, assumed zero
D:\3x-TCTDM\gamemodes\TCTDM.pwn(12950) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.