Foreach.
#2

You will have to loop though all the vehicles, I don't think there's any other way.

You'll have to use:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
The foreach include is for players only, it's a efficient way of this:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        // Code
    }
}
Edit: Ignore this - Inaccurate.
Reply


Messages In This Thread
Foreach. - by budelis - 27.10.2012, 08:13
Re: Foreach. - by ryansheilds - 28.10.2012, 17:22
Re: Foreach. - by rjjj - 28.10.2012, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)