Vehicle passenger iterator
#7

Quote:
Originally Posted by Y_Less
View Post
The multi iterator version Crayder mentioned would be better. Your code could have a player in multiple vehicles at once, which can't happen. Instead:

PHP Code:
new Iterator:Passenger<MAX_VEHICLESMAX_PLAYERS>;
foreach (new 
playerid Passenger<vehicleid>)
{

Basically just replace [vehicleid] with <vehicleid>.
Alright
Thanks for your help
Reply


Messages In This Thread
Vehicle passenger iterator - by m4karow - 30.03.2019, 22:47
Re: Vehicle passenger iterator - by Crayder - 31.03.2019, 04:34
Re: Vehicle passenger iterator - by m4karow - 31.03.2019, 11:17
Re: Vehicle passenger iterator - by m4karow - 31.03.2019, 11:20
Re: Vehicle passenger iterator - by raydx - 31.03.2019, 11:22
Re: Vehicle passenger iterator - by m4karow - 31.03.2019, 11:39
Re: Vehicle passenger iterator - by m4karow - 31.03.2019, 17:28

Forum Jump:


Users browsing this thread: 3 Guest(s)