Can't check if the car lights are on/off
#1

Код:
if(GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,0,alarm,doors,bonnet,boot,objective))
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,1,alarm,doors,bonnet,boot,objective);
return 1;
}
error 035: argument type mismatch (argument 3)
Reply
#2

Correct way:
Код:
GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective)
if(lights != 1)
{
SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,true,alarm,doors,bonnet,boot,objective);
return 1;
}
Reply
#3

It works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)