KEYs problems
#1

Why doesn't this work?
Код:
IsKeyJustDown(KEY_LEFT, newkeys, oldkeys))
I use it under OnPlayerKeyStateChange, neither KEY_RIGHT works but when I use any other key like KEY_FIRE it works!
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key
Reply
#3

omg........

I already have stock IsKeyJustDown, But when I check for KEY_LEFT or KEY_RIGHT it just doesnt work! But it works for any other key like KEY_FIRE ETC............
Reply
#4

Read this.

pawn Код:
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr);
 
if(ud > 0) {
    // KEY DOWN
}
if(ud < 0) {
    // KEY UP
}
 
if(lr > 0) {
    // KEY RIGHT
}
if(lr < 0) {
    // KEY LEFT
}
You need to use GetPlayerKeys for that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)