foreach Vehicle iterator
#3

@MP2, thanks, but how would I get the vehicleid for Iter_Add/Remove in AddStaticVehicle, AddStaticVehicleEx and CreateVehicle?

Also, if the number is already in the iter, Vehicle, then Iter_Add will do nothing, and if the number isn't in the iter, then Iter_Remove will do nothing:
Quote:

Iter_Add(name, value)

Adds a value to the named iterator. If the value is invalid or already present it is simply ignored.

Iter_Remove(name, value)

Removes a value from the named iterator. If the value is invalid or not present it is simply ignored.

Edit: Changed the function to use Iter_Count()
Reply


Messages In This Thread
foreach Vehicle iterator - by Dubya - 23.03.2014, 01:53
Re: foreach Vehicle iterator - by MP2 - 23.03.2014, 02:03
Re: foreach Vehicle iterator - by Dubya - 23.03.2014, 02:07
Re: foreach Vehicle iterator - by MP2 - 23.03.2014, 02:20
Re: foreach Vehicle iterator - by Dubya - 23.03.2014, 02:23
Re: foreach Vehicle iterator - by MP2 - 23.03.2014, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)