PDA

View Full Version : Update Vehicle Damage Status problem...


Ins1d3
26/01/2014, 06:11 PM
Hi guys, today i'm started write a Mechanic System for my server and i'm have a problem. It's problem called "UpdateVehicleDamageStatus"...
I'm want repair a bonnet but bonnet not repair, i want repair a boot, but boot not repair
Code:
case 0:{
//new panels, doors, lights, tires;
new vid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vid, 0101, doors, lights, tires);}
case 1:{
new vid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vid, 1010, doors, lights, tires);}
Help plz
Sorry for my bad english :)