Defining MAX_PLAYERS
#9

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Use:
PHP код:
foreach(%1)        for(new %0p_%GetPlayerPoolSize(); %<= p_%1; %1++) 
Foreach/y_iterate is still faster than pool size functions.

I'll give a simple example to see the difference:
- You create 1500 vehicles.
- You delete 1 to 1499 vehicles and you keep only the vehicle with ID 1500.
Using pool size will go from 1 to 1500 (1500 times) while foreach will loop ONLY 1 time.
Reply


Messages In This Thread
Defining MAX_PLAYERS - by Eyce - 15.04.2016, 13:48
Re: Defining MAX_PLAYERS - by yugecin - 15.04.2016, 13:55
Re: Defining MAX_PLAYERS - by Eyce - 15.04.2016, 14:05
Re: Defining MAX_PLAYERS - by Vince - 15.04.2016, 14:47
Re: Defining MAX_PLAYERS - by yugecin - 15.04.2016, 15:15
Re: Defining MAX_PLAYERS - by Eyce - 15.04.2016, 17:01
Re: Defining MAX_PLAYERS - by NaS - 15.04.2016, 17:07
Re: Defining MAX_PLAYERS - by AbyssMorgan - 15.04.2016, 18:05
Re: Defining MAX_PLAYERS - by Konstantinos - 15.04.2016, 18:11
Re: Defining MAX_PLAYERS - by AmigaBlizzard - 15.04.2016, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)