03.11.2016, 15:42
Title says it all.
Take a look at the example: https://sampwiki.blast.hk/wiki/GetVehiclePoolSize
If you use YSI 4, make use of "Vehicle" iterator. |
for(new vehicleid = 1, max_vehicleid = GetVehiclePoolSize(); vehicleid <= max_vehicleid; vehicleid ++) {
if(IsValidVehicle(vehicleid)) {
// do stuff
}
}
https://sampwiki.blast.hk/wiki/CreateVehicle "The vehicle ID of the vehicle created (1 to MAX_VEHICLES)." |