Random Player Bug
#1

pawn Код:
forward RandomPlayer();
public RandomPlayer()
{
    new
        ConnectedPlayers[MAX_PLAYERS] = {INVALID_PLAYER_ID, ...},
        idx;
    for(new i = 0; i != MAX_PLAYERS; ++i)
    {
            ConnectedPlayers[idx] = i;
            idx++;
    }

    if(!idx)
        return INVALID_PLAYER_ID;

    GivePlayerMoney(ConnectedPlayers[random(idx),50000]/*it has Random Playerid*/);
    return 1;
}
Its giving money, to unknown id like 250 ,160,280,360.. etc..

Btw Server slot 150 only

and its not giving to online players
Reply


Messages In This Thread
Random Player Bug - by Venice - 30.08.2014, 09:18
Re: Random Player Bug - by VishvaJeet - 30.08.2014, 09:26
Re: Random Player Bug - by buburuzu19 - 30.08.2014, 09:26
Re: Random Player Bug - by Stinged - 30.08.2014, 09:32
Re: Random Player Bug - by Clad - 30.08.2014, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)