OnPlayerKeyStateChange - don't exist - key Y
#1

Hey, i have a problem:

Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
	if ( newkeys & KEY_YES )
	{
		ShowPlayerDialog( playerid, help, DIALOG_STYLE_LIST, ""NAME_S" "W"- "S"Menu pomocy", Help_String_ENG( ), "Wybierz", "Zamknij" );
	}
	return ( 1 );
}
don't exist
what is the problem?
Reply
#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
#3

Thanks, but don't work.
My SA setting (Key YES) is good.

So I do not know what could be wrong - other keys work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)