#1

Hello,

Im trying to make a register-textdraw system but im having a problem with some keys that doesnt works properly,
"KEY_RIGHT" doesnt works but if i tray with another key like SPRINT works perfect.

Thanks if someone could help.
Reply
#2

Read this:
https://sampwiki.blast.hk/wiki/GetPlayerKeys

You need to use that function to detect if someone is pressing up, down, left or right.

Example:
pawn Код:
new keys, updown, leftright;
GetPlayerKeys(playerid,updown,leftright);

if(updown<0){
        // When they press Up.
        //Up has a value of -128, which is LESS THAN (<) 0  
}
else {
        // When they press Down.
        //Up has a value of 128, which is NOT LESS THAN (<) 0  
}
if(leftright<0){
        // When they press Left.
        //Left has a value of -128, which is LESS THAN (<) 0  
}
else {
        // When they press Right.
        //Right has a value of 128, which is NOT LESS THAN (<) 0  
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)