28.03.2014, 14:44
I've got a vehicle system which in it you don't lose your car just if someone blowed it.
and I've got this code onvehicledeath
but the proplem its not sending me any message when the vehicle death and it doesn't discrease the number of owned vehicles.
I knew the problem i have to write ID not name but i don't know how to convert from name to ID can some one help me
you will get +rep
and I've got this code onvehicledeath
pawn Код:
if(VehicleInfo[vehicleid][bought] == 1)
{
SendClientMessage(VehicleInfo[vehicleid][vOwner],COLOR_RED,"[ERROR] {FFFFFF}Your bought vehicle has been destroyed. You have to buy another one");
fremove(VehicleFile(vehicleid));
DestroyNeons(vehicleid);
DestroyVehicle(vehicleid);
GetPlayerVehicles[VehicleInfo[vehicleid][vOwner]] --;
}
I knew the problem i have to write ID not name but i don't know how to convert from name to ID can some one help me
you will get +rep