Bug at clickable textdraws. - 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: Bug at clickable textdraws. (
/showthread.php?tid=395423)
Bug at clickable textdraws. -
Edvin - 26.11.2012
Hello.
I made 4 clickable textdraws for my personal vehicle system, and when I wanted to test it, I want for exemple to click on "Previous >" and watch what happens:
Other photos:

When I wanted to click on "Buy Car" ^.

Here, I wanted to click on "Test Drive" ^.
Some ideas for the reason of this bug happens? Thanks.
Re: Bug at clickable textdraws. -
[KHK]Khalid - 26.11.2012
It has to do with the creation of those textdraws and of course their text size (
TextDrawTextSize).
Re: Bug at clickable textdraws. -
Edvin - 26.11.2012
And what can I do to solve that bug? I tried to re-create that textdraws but, still have the bug.
Respuesta: Bug at clickable textdraws. -
adri1 - 26.11.2012
For clickeable textdraw need to use TextDrawTextSize and TextDrawAligment 2. Aligment 2 (centered).
Example:
Код:
new td = CreateTextDraw(x,y,"Test");
TextDrawAligment(td,2);
TextDrawTextSize(td,5,10); //For alignment 2 (center) the x and y values need to inverted
TextDrawSetSelectable(td,1);
Bye (:
Re: Bug at clickable textdraws. -
Edvin - 27.11.2012
@adri1, it doesn't helped me very much, it's still that bug there, like in images, but now i can select only "TEST DRIVE" TD button
Re: Bug at clickable textdraws. -
NumbSkull - 27.11.2012
@adri1 i have made many on alignment 1

but @ edvin make sure none of them have boxes and do what adri1 said make sure TextDrawTextSize is big enough but not too big for your td