GetPlayerKeys problem with arrow keys
#10

@[uL]Pottus: its the server from my signature-Convoy Trucking.
@kurta999: I tried the way you told me,but still Num 6 and Num 9 are the keys which respond :S Here's how I done it
Код:
GetPlayerKeys(playerid, Keys, ud, lr);
if(ud)
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
		if (engine == 0)
		{
			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);
		}
	}
}
Reply


Messages In This Thread
GetPlayerKeys problem with arrow keys - by BGTrucker - 12.10.2013, 16:30
Re: GetPlayerKeys problem with arrow keys - by Pottus - 12.10.2013, 17:31
Re: GetPlayerKeys problem with arrow keys - by tuitalker - 12.10.2013, 17:38
Re: GetPlayerKeys problem with arrow keys - by BGTrucker - 12.10.2013, 18:20
Re: GetPlayerKeys problem with arrow keys - by Pottus - 12.10.2013, 20:30
Re: GetPlayerKeys problem with arrow keys - by kurta999 - 12.10.2013, 22:01
Re: GetPlayerKeys problem with arrow keys - by Pottus - 12.10.2013, 22:53
Re: GetPlayerKeys problem with arrow keys - by Kar - 12.10.2013, 23:06
Re: GetPlayerKeys problem with arrow keys - by Pottus - 12.10.2013, 23:15
Re: GetPlayerKeys problem with arrow keys - by BGTrucker - 13.10.2013, 05:36

Forum Jump:


Users browsing this thread: 1 Guest(s)