Function GetSuperior/InferiorID
#9

The lowest player ID?
pawn Код:
stock GetLowestPlayerID()
{
    for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++)
    {
        if(!IsPlayerConnected(i))
        {
            continue;
        }
       
        return i;
    }
    return INVALID_PLAYER_ID;
}
Reply


Messages In This Thread
Function GetSuperior/InferiorID - by YouServ - 27.03.2016, 18:42
Re: Function GetSuperior/InferiorID - by SickAttack - 27.03.2016, 18:55
Re: Function GetSuperior/InferiorID - by YouServ - 27.03.2016, 19:00
Re: Function GetSuperior/InferiorID - by SickAttack - 27.03.2016, 19:12
Re: Function GetSuperior/InferiorID - by YouServ - 27.03.2016, 19:25
Re: Function GetSuperior/InferiorID - by Konstantinos - 27.03.2016, 19:49
Re: Function GetSuperior/InferiorID - by SickAttack - 27.03.2016, 19:56
Re: Function GetSuperior/InferiorID - by YouServ - 27.03.2016, 20:40
Re: Function GetSuperior/InferiorID - by SickAttack - 27.03.2016, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)