30.05.2015, 12:34
Why don't you just create the vehicle directly in the loop with the rest (engine to off) and not calling GetFreeVehicleSlot at all? Everything will be stored and then a loop to find if vehicle IDs do match would be fine.
@J4Rr3x: It will create only one vehicle as it's outside of the loop and "vehicleid" is undefined symbol in GetVehicleParamsEx function.
@J4Rr3x: It will create only one vehicle as it's outside of the loop and "vehicleid" is undefined symbol in GetVehicleParamsEx function.