08.07.2011, 05:13
(
Последний раз редактировалось Kitten; 24.11.2013 в 06:20.
)
Solved
I made this code it should of picked 1 player only but it picks 3 or 6 random players which is complety wrong look at the code i can't seem to figure it out
pawn Код:
|
public StartInfection(playerid)
{
if(Iter_Random(Player) == playerid && Iter_Count(Player) > 1) return 1;
OnceOnly = 0;
return 1;
}
public StartInfection(playerid) {
new count = 0;
start:
new Random = Iter_Random(Player);
if(Random == playerid && Iter_Count(Player) > 1) {
count++;
if(count > 3)
{
//failed
return 1;
}
goto start;
}
OnceOnly = 0;
return 1;
}