OnPlayerKey Same Keys?
#1

Hello,

I have a problem with my script.
What happens is if i press the Look behind key it says the error message that i have in KEY_SUB.
pawn Код:
if (newkeys & KEY_SUBMISSION)
{
    if(IsPlayerInPoliceVehicle(playerid)==1)
    {
         return 1;
    }
    else
    {
    //error message
    }
    return 1;
}
else if (newkeys & KEY_LOOK_BEHIND)
{
//other stuff
}
How can i fix this?
Noo i dont have this error message in KEY_LOOK_BEHIND.

Admigo
Reply
#2

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

Keys change depending on whether you're in a vehicle. Only use KEY_SUBMISSION and then use a state check.
Reply
#4

I already tried that, not working.
Normally i did not had this problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)