IsPlayerAdmin can't use [i]
#2

IsPlayerConnected doesnt need 1-2 check, as it return true or false.

PHP код:

forward MessageToAdmins
(color,const string[]);
public 
MessageToAdmins(color,const string[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i)) {
             if(
PlayerInfo[i][Level] >= || IsPlayerAdmin(i)) {
                 
SendClientMessage(icolorstring);
            }
        }
    }
    return 
1;

EDIT: woops fixed


EDIT v2: Yes, you cannot use [i] on IsPlayerAdmin since thats an in-built SA:MP function and it responds to IsPlayerAdmin(playerid) or in your case IsPlayerAdmin(i)
Look more here
https://sampwiki.blast.hk/wiki/IsPlayerAdmin
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: 2 Guest(s)