IsPlayerAdmin can't use [i]
#1

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.
At the isplayeradmin Line Thanks in advance !
Reply


Messages In This Thread
IsPlayerAdmin can't use [i] - by KillerStrike23 - 22.01.2016, 01:59
Re: IsPlayerAdmin can't use [i] - by TwinkiDaBoss - 22.01.2016, 02:04
Re: IsPlayerAdmin can't use [i] - by KillerStrike23 - 22.01.2016, 02:12
Re: IsPlayerAdmin can't use [i] - by SickAttack - 22.01.2016, 02:44
Re: IsPlayerAdmin can't use [i] - by TwinkiDaBoss - 22.01.2016, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)