02.09.2016, 17:34
(
Последний раз редактировалось HidroDF; 02.10.2016 в 17:54.
)
SOLVED _
DestroyVehicle(id);
GetVehicleHealth(id, health); DestroyVehicle(id); etc...
First, how do you that the vehicle wasn't already destroyed? Do you track destroyed vehicles in OnVehicleDeath? Do you clear the CarID?
Second, is it possible to have multiple cars with the same id? If not, you should break your for loop when it finds the car id. Now to assist you, You're using Код:
DestroyVehicle(id); One final note: Код:
GetVehicleHealth(id, health); DestroyVehicle(id); etc... |
if(VehicleSystem[i][CarID] == id)