OnPlayerKeyStateChange - don't exist - key Y - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: OnPlayerKeyStateChange - don't exist - key Y (
/showthread.php?tid=472443)
OnPlayerKeyStateChange - don't exist - key Y -
Fuler - 28.10.2013
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?
Re: OnPlayerKeyStateChange - don't exist - key Y -
Konstantinos - 28.10.2013
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?
Re: OnPlayerKeyStateChange - don't exist - key Y -
Fuler - 28.10.2013
Thanks, but don't work.
My SA setting (Key YES) is good.
So I do not know what could be wrong - other keys work.