Textdraw Selection - 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 Selection (
/showthread.php?tid=344112)
Textdraw Selection -
SuperViper - 19.05.2012
I've looked over my code several times and I can't find a reason as to why I can't select this textdraw. It doesn't turn yellow when I put my mouse over it but the 'close' button under it works.
pawn Код:
gPhoneEnterNum[2] = TextDrawCreate(533.000000, 362.000000, "1");
TextDrawBackgroundColor(gPhoneEnterNum[2], 255);
TextDrawFont(gPhoneEnterNum[2], 1);
TextDrawLetterSize(gPhoneEnterNum[2], 0.600000, 1.000000);
TextDrawColor(gPhoneEnterNum[2], -1);
TextDrawSetOutline(gPhoneEnterNum[2], 1);
TextDrawSetProportional(gPhoneEnterNum[2], 1);
TextDrawTextSize(gPhoneEnterNum[2], 100.000000, 20.000000);
TextDrawSetSelectable(gPhoneEnterNum[2], 1);
pawn Код:
gPhoneMain[11] = TextDrawCreate(571.000000, 421.000000, "~r~close");
TextDrawAlignment(gPhoneMain[11], 2);
TextDrawBackgroundColor(gPhoneMain[11], 255);
TextDrawFont(gPhoneMain[11], 2);
TextDrawLetterSize(gPhoneMain[11], 0.419999, 1.300000);
TextDrawColor(gPhoneMain[11], -1);
TextDrawSetOutline(gPhoneMain[11], 1);
TextDrawSetProportional(gPhoneMain[11], 1);
TextDrawUseBox(gPhoneMain[11], 1);
TextDrawBoxColor(gPhoneMain[11], 53);
TextDrawTextSize(gPhoneMain[11], 15.000000, 86.000000);
TextDrawSetSelectable(gPhoneMain[11], 1);
Re: Textdraw Selection -
Jonny5 - 19.05.2012
i cant see it but make sure the 2 boxes around the TD's are not touching.
Re: Textdraw Selection -
SuperViper - 19.05.2012
They aren't touching. The numbers have no boxes by the way.
Re: Textdraw Selection -
MP2 - 19.05.2012
Does OnPlayerClickTextDraw get called? Did you use SelectTextdraw()?
Re: Textdraw Selection -
SuperViper - 19.05.2012
No OnPlayerClickTextDraw does not get called and yes I know I called SelectTextDraw because the button below it is clickable.
Re: Textdraw Selection -
Hiddos - 20.05.2012
Take a look at
my reply in your first topic