Defining an undefined key.
#6

You can't detect the arrow keys with the callback OnPlayerKeyStateChange. You also can't define new keys. To detect arrow keys you should use GetPlayerKeys in OnPlayerUpdate, or a timer.

Example is on the wiki here https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Messages In This Thread
Defining an undefined key. - by [RVRP]Tyler - 21.06.2011, 19:33
Re: Defining an undefined key. - by danodanodano - 21.06.2011, 20:09
Re: Defining an undefined key. - by [RVRP]Tyler - 21.06.2011, 20:44
Re: Defining an undefined key. - by Sasino97 - 21.06.2011, 20:57
Re: Defining an undefined key. - by xRyder - 21.06.2011, 21:05
Re: Defining an undefined key. - by iggy1 - 21.06.2011, 21:10
Re: Defining an undefined key. - by Sasino97 - 21.06.2011, 21:15

Forum Jump:


Users browsing this thread: 3 Guest(s)