OnPlayerKeyStateChange - don't exist - key Y
#2

You code should've worked, it seems fine to me.

pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
    if( ( newkeys & KEY_YES ) && !( oldkeys & KEY_YES ) )
    {
        SendClientMessage( playerid, -1, "Y key" );
    }
    return 1;
}
Compile and test it in-game. Does it show the message?
Reply


Messages In This Thread
OnPlayerKeyStateChange - don't exist - key Y - by Fuler - 28.10.2013, 17:28
Re: OnPlayerKeyStateChange - don't exist - key Y - by Konstantinos - 28.10.2013, 17:33
Re: OnPlayerKeyStateChange - don't exist - key Y - by Fuler - 28.10.2013, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)