25.07.2011, 12:20
no errors, but why its don't work? script:
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); if(newkeys == KEY_ANALOG_UP) { if(lights == 1||VEHICLE_PARAMS_ON||true) { SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective); } else if(lights == 0||VEHICLE_PARAMS_OFF||false) { SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective); } } if(newkeys == KEY_ANALOG_DOWN) { if(engine == 1||VEHICLE_PARAMS_ON||true) { SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective); } else if(engine == 0||VEHICLE_PARAMS_OFF||false) { SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective); } } if(newkeys == KEY_ANALOG_LEFT) { if(boot == 1||VEHICLE_PARAMS_ON||true) { SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,0,objective); } else if(boot == 0||VEHICLE_PARAMS_OFF||false) { SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,1,objective); } } if(newkeys == KEY_ANALOG_RIGHT) { if(bonnet == 1||VEHICLE_PARAMS_ON||true) { SetVehicleParamsEx(vid,engine,lights,alarm,doors,0,boot,objective); } else if(bonnet == 0||VEHICLE_PARAMS_OFF||false) { SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective); } } return 1; }