22.09.2015, 19:08
Hey guys,
I have decided to start optimizing my script and I wanted to start with player loops.
Which one of these is faster?
1. Using foreach? If yes, what is the best syntax? If you could provide a basic example it would be awesome!
2. Using for like this?
Really looking forward to your answers.
I have decided to start optimizing my script and I wanted to start with player loops.
Which one of these is faster?
1. Using foreach? If yes, what is the best syntax? If you could provide a basic example it would be awesome!
2. Using for like this?
pawn Код:
for(new i; i <= GetPlayerPoolSize(); i++)
{
//code
}