21.12.2012, 18:16
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:
Then when the user executes a command it is displayed:
And finaly I start the selection with:
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
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.500000, 229.900000, "usebox");
TextDrawLetterSize(Test, 0.000000, 1.190277);
TextDrawTextSize(Test, 300.500000, 0.000000);
TextDrawAlignment(Test, 1);
TextDrawColor(Test, 0);
TextDrawUseBox(Test, true);
TextDrawBoxColor(Test, 134746623);
TextDrawSetShadow(Test, 0);
TextDrawSetOutline(Test, 0);
TextDrawFont(Test, 0);
TextDrawSetSelectable(Test, 1);
PHP код:
TextDrawShowForPlayer(playerid, Test);
PHP код:
SelectTextDraw(playerid, COLOR);
What am I doing wrong?
I hope somebody could give me a hand here.
Thanks