24.10.2009, 12:52
Like I said before, the vehicle ids start at 1 and end at 1999. MAX_VEHICLES might be 2000, but the vehicle limit is 1999. If you're really worried saving a tiny bit of memory you can do
but it's easier to just ignore the first array element
pawn Код:
new gVehicleModel[MAX_VEHICLES-1];
for(new vehicleid = 1; vehicleid < MAX_VEHICLES; vehicleid++) {
gVehicleModel[vehicleid - 1] = GetVehicleModel(vehicleid);
}
pawn Код:
new gVehicleModel[MAX_VEHICLES];
for(new vehicleid = 1; vehicleid < MAX_VEHICLES; vehicleid++) {
gVehicleModel[vehicleid] = GetVehicleModel(vehicleid);
}