01.11.2013, 16:53
Do you even know what "Index out of bounds" is?
You can use indexes 0-1999
However, it passes 65535 (INVALID_VEHICLE_ID) when the max value it could get is MAX_VEHICLES - 1.
You do not need the line? Okay, have fun searching what caused it..
@Pottus: Even if AddStaticVehicleEx returned INVALID_VEHICLE_ID because it reached the limit or due to an invalid modelid, he does not pass LVehicleID (which may be is INVALID_VEHICLE_ID) into any array to that command so the mistake is somewhere else.
pawn Код:
new
Some_Vehicle[ MAX_VEHICLES ]
;
However, it passes 65535 (INVALID_VEHICLE_ID) when the max value it could get is MAX_VEHICLES - 1.
You do not need the line? Okay, have fun searching what caused it..
@Pottus: Even if AddStaticVehicleEx returned INVALID_VEHICLE_ID because it reached the limit or due to an invalid modelid, he does not pass LVehicleID (which may be is INVALID_VEHICLE_ID) into any array to that command so the mistake is somewhere else.

