12.10.2013, 16:30
Well,I made to turn vehicle engine ON by pressing up/down arrow,but for some reason instead of up/down arrows,Num 6 and Num 9 are the keys which turn the engine ON.And I'm sure I have done it right.So what could be wrong
Код:
if (GetPlayerVehicleSeat(playerid) == 0) { GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); if (engine == 0) { new Keys, ud, lr; GetPlayerKeys(playerid, Keys, ud, lr); if ((ud == KEY_UP) || (ud == KEY_DOWN)) { if(AVehicleData[GetPlayerVehicleID(playerid)][Fuel] > 0) { SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, 1, alarm, doors, bonnet, boot, objective); } else GameTextForPlayer(playerid, "~r~Your vehicle doesn't have fuel ~n~to start the engine", 3000, 3); } } }