OnPlayerKeyStateChange
#1

How come it doesn't work with KEY_UP, KEY_DOWN, KEY_LEFT and KEY_RIGHT but with all the others ?
And does anybody knows how to fix this as easy as possible ?
Reply
#2

It won't work with the keys you mentioned.

In order to read those keys, you can use GetPlayerKeys in OnPlayerUpdate.
Reply
#3

KEY_UP is actually the ALT KEY (walking key).
Reply
#4

okay, but when using it in OnPlayerUpdate with GetPlayerKeys it spams...
Reply
#5

Use OnPlayerUpdate, easiest solution.
Reply
#6

Quote:
Originally Posted by Lorrden
Посмотреть сообщение
okay, but when using it in OnPlayerUpdate with GetPlayerKeys it spams...
pawn Код:
do
{
    // Code you want to run here
}
while(GetPlayerKeys(playerid, KEYS)) // Put the condition for run here. Will run the action between "{" "}" while this is true
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)