20.06.2011, 10:47
Hi everybody !
Today my problem is that i have only one vehicle light which is on when i putt lights on. Screen:
This is the front but in the back, it's on:
Can you help me ?
My Pawno script:
PS: Sorry for my bad english i'm french so explain in a easy english please
EDIT: Resolved, it was and "UpdateVehicleDamageStatus"
Today my problem is that i have only one vehicle light which is on when i putt lights on. Screen:
This is the front but in the back, it's on:
Can you help me ?
My Pawno script:
pawn Код:
else if(newkeys == KEY_SUBMISSION)
{
if(pState == 2) // En voiture
{
new engine,lights,alarm,doors,bonnet,boot,objective;
new tmpCarId = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(tmpCarId,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights == 0)
{
SetVehicleParamsEx(tmpCarId,engine,1,alarm,doors,bonnet,boot,objective);
}
else
{
SetVehicleParamsEx(tmpCarId,engine,0,alarm,doors,bonnet,boot,objective);
}
return 1;
}
else
{
return 1;
}
}
EDIT: Resolved, it was and "UpdateVehicleDamageStatus"