Looping all vehicles using foreach
#4

@ LarzI i did not use Iter_add

@Vince i tried using someone's code and tried doing this and remove's the warning but it seems not working properly, i used grand larcenary Los Santos vehicles which is this

pawn Код:
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
and removed some vehicles all vehicles i have atm on the server is 546

pawn Код:
static stock
    Iterator:Vehicles<MAX_VEHICLES>
;
Reply


Messages In This Thread
Looping all vehicles using foreach - by Patrick - 19.02.2013, 10:54
Re: Looping all vehicles using foreach - by LarzI - 19.02.2013, 11:13
Re: Looping all vehicles using foreach - by Vince - 19.02.2013, 11:38
Re: Looping all vehicles using foreach - by Patrick - 19.02.2013, 11:56
Re: Looping all vehicles using foreach - by Patrick - 19.02.2013, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)