2 Players in Iter_Random
#4

pawn Код:
TwoRandomPlayers(&player1, &player2)
{
    if (Iter_Count(Player) > 1)
    {
        player1 = Iter_Random(Player);

        do
        {
            player2 = Iter_Random(Player);
        }
        while (player1 == player2);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
2 Players in Iter_Random - by JaKe Elite - 13.12.2016, 10:05
Re: 2 Players in Iter_Random - by X337 - 13.12.2016, 10:44
Re: 2 Players in Iter_Random - by JaKe Elite - 13.12.2016, 11:05
Re: 2 Players in Iter_Random - by Konstantinos - 13.12.2016, 11:06
Re: 2 Players in Iter_Random - by JaKe Elite - 13.12.2016, 11:10
Re: 2 Players in Iter_Random - by Gammix - 13.12.2016, 12:56

Forum Jump:


Users browsing this thread: 2 Guest(s)