OnPlayerKeyStateChange [ HELP ] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerKeyStateChange [ HELP ] (
/showthread.php?tid=641910)
OnPlayerKeyStateChange [ HELP ] -
Man43 - 22.09.2017
I've adding this code For hidding the textdraws when typing /cmds > 1 and pressed
KEY_FIRE But the given me 1 error
Код:
error 017: undefined symbol "text"
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (InMenu[playerid] == 1)
{
if(strval(text) == 1)
{
TextDrawHideForPlayer(playerid, Textdraw22);
}
}
}
return 1;
}
Re: OnPlayerKeyStateChange [ HELP ] -
Dello - 22.09.2017
You didn't defined "text", and in this native is not included.
Re: OnPlayerKeyStateChange [ HELP ] -
DeStRoY232 - 22.09.2017
maybe this > new text[265]
on top of if(strval(text) == 1)
Re: OnPlayerKeyStateChange [ HELP ] -
Man43 - 23.09.2017
Guys... I want a if you are typing /cmds and press
KEY_FIRE The textdraws removed / destroyed And if you typing /cmds > 1.. etc and pressed KEY_FIRE Same textdraws removed HOW!?
Re: OnPlayerKeyStateChange [ HELP ] -
BadJih - 23.09.2017
new [text]