SA-MP Forums Archive
TextDraw Selectable problem! - 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: TextDraw Selectable problem! (/showthread.php?tid=354997)



TextDraw Selectable problem! - Roko_foko - 28.06.2012

I am not able to select textdraw at first, but after I type command /std I am able? I don't get it.
Код:
QuitTDOnClick(playerid)//quit Text Draws On one Click
{
    gPlayerStory[playerid]=0;
    TextDrawSetSelectable(ClickQuit, 1);
    TextDrawShowForPlayer(playerid,ClickQuit);
    SelectTextDraw(playerid, COLOR_YELLOW);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if( (!strcmp(cmdtext,"/selecttextdraw",true,15) && !cmdtext[15]) || (!strcmp(cmdtext,"/std",true,4) && !cmdtext[4]) )
	{
                  CancelSelectTextDraw(playerid);
                  SelectTextDraw(playerid, COLOR_YELLOW);
                  return 1;
	}
}
Thank you in advance.