Clickable Textdraw not working
#1

Hi guys,
Is my first time working with clickable textdraws, and I've read all the samp documentation and some tutorials, but I can't get it working.
Here's a simple example.
On game mode init I create the textdraw:
PHP код:
Test=TextDrawCreate(342.500000229.900000"usebox");
TextDrawLetterSize(Test0.0000001.190277);
TextDrawTextSize(Test300.5000000.000000);
TextDrawAlignment(Test1);
TextDrawColor(Test0);
TextDrawUseBox(Testtrue);
TextDrawBoxColor(Test134746623);
TextDrawSetShadow(Test0);
TextDrawSetOutline(Test0);
TextDrawFont(Test0);
TextDrawSetSelectable(Test1); 
Then when the user executes a command it is displayed:
PHP код:
TextDrawShowForPlayer(playeridTest); 
And finaly I start the selection with:
PHP код:
SelectTextDraw(playeridCOLOR); 
The textdraw is displayed but when I click it OnPlayerClickTextDraw is not called, and it doesn't change his color when I put my mouse hover it....

What am I doing wrong?

I hope somebody could give me a hand here.

Thanks
Reply


Messages In This Thread
Clickable Textdraw not working - by mati233 - 21.12.2012, 18:16
Re: Clickable Textdraw not working - by DaRk_RaiN - 21.12.2012, 18:18
Re: Clickable Textdraw not working - by mati233 - 21.12.2012, 20:25
Re: Clickable Textdraw not working - by Hayden_Almeida - 15.12.2015, 18:43
Re: Clickable Textdraw not working - by Vince - 15.12.2015, 18:51

Forum Jump:


Users browsing this thread: 2 Guest(s)