random select player?
#4

Quote:
Originally Posted by Threshold
Посмотреть сообщение
You didn't read the original post... did you...?

Obviously ******' suggestion is the most ethical solution.

The only way to make something equal in operation but not in efficiency is to create an array that stores current player IDs and loop through that instead.
I misunderstood, need to sorry for this.

PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(!
IsPlayerConnected(i))continue;
    
//if connected "return 1;" or "break;" here

Would still be a non-include solution.
Reply


Messages In This Thread
random select player? - by 3417512908 - 19.10.2018, 09:52
Re: random select player? - by GangstaSunny. - 19.10.2018, 15:14
Re: random select player? - by Threshold - 19.10.2018, 15:20
Re: random select player? - by GangstaSunny. - 19.10.2018, 15:28
Re: random select player? - by jasperschellekens - 19.10.2018, 15:38
Re: random select player? - by g1venchy - 19.10.2018, 15:57
Re: random select player? - by GangstaSunny. - 19.10.2018, 17:18
Re: random select player? - by g1venchy - 19.10.2018, 19:38
Re: random select player? - by GangstaSunny. - 19.10.2018, 21:24
Re: random select player? - by GTLS - 21.10.2018, 09:48

Forum Jump:


Users browsing this thread: 4 Guest(s)