bug keystatechange?
#1

When i put this in OnPlayerKeyStateChange its not work

If(newkeys == key_up)
{
SendClientMesaage (playerid, -1,"you walk");
}
Any key who I pressed the message is not apear.
Reply
#2

It's not a bug. https://sampwiki.blast.hk/wiki/GetPlayerKeys.

Quote:

Directional keys do not trigger OnPlayerKeyStateChange (up/down/left/right). They can only be detected with GetPlayerKeys (in OnPlayerUpdate or a timer).

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)