IsPlayerAdmin can't use [i]
#5

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
stock SendMessageToAdmins(const color, const string[])
{
    for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++)
    {
        if(!IsPlayerConnected(i) || !PlayerInfo[i][Level] || !IsPlayerAdmin(i))
        {
            continue;
        }

        SendClientMessage(i, color, string);
    }
    return 1;
}
@TwinkiDaBoss - Update your player loops.

[] = index/cell
() = arguments/operation
I personally use foreach for this stuff, but a good point there.
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: 3 Guest(s)