pick a random guy?
#4

Why would you loop 500 times to kick 1 random guy?

pawn Код:
new r = random(CURRENT_PLAYERS);
Kick(r);
Suddenly there will be an error because it tries to kick id 2 but ID 2 doesn't exist... now we have a problem don't we?

So now, you look up ****** his foreach function, figure your way out on that one and you have a kick command that kicks a random dude =)

https://sampforum.blast.hk/showthread.php?tid=92679
Reply


Messages In This Thread
pick a random guy? - by MrIncredible - 11.01.2011, 22:48
Re: pick a random guy? - by Kitten - 11.01.2011, 23:00
Re: pick a random guy? - by MrIncredible - 11.01.2011, 23:04
AW: pick a random guy? - by Extremo - 11.01.2011, 23:07
Re: pick a random guy? - by Kyosaur - 11.01.2011, 23:14
Re: pick a random guy? - by Joe Staff - 11.01.2011, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)