[Help]Hold / Pressed key
#1

I make it
Код:
if (PRESSED( KEY_WALK ))
    {
		drzanjetimer = SetTimerEx("Drzanje1",1000,1,"d",playerid);
	}
	else if (RELEASED( KEY_WALK ))
	{
		KillTimer(drzanjetimer);
	}
How I make this code with KEY_UP ?

I tried this :
Код:
if (PRESSED( KEY_UP ))
    {
		drzanjetimer = SetTimerEx("Drzanje1",1000,1,"d",playerid);
	}
	else if (RELEASED( KEY_UP ))
	{
		KillTimer(drzanjetimer);
	}
but not work... :S
Reply
#2

I think this one:
pawn Код:
KEY_ANALOG_UP
Reply
#3

Quote:
Originally Posted by Shabi RoxX
Посмотреть сообщение
I think this one:
pawn Код:
KEY_ANALOG_UP
not work too... :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)