Problem from Clickable Textdraw - 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: Problem from Clickable Textdraw (
/showthread.php?tid=356340)
Problem from Clickable Textdraw -
Joe21 - 03.07.2012
well this is my first thread on Script help ,
i want you guys to solve my problem.
please look.
i put this below script on OnGameModeInit
and
Код:
Textdraw4 = TextDrawCreate(480.000000, 313.000000, "LOGIN");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.609999, 1.600000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 2);
Textdraw5 = TextDrawCreate(550.000000, 313.000000, "/ EXIT");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.750000, 1.699999);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 2);
TextDrawSetSelectable(Textdraw4, true);
TextDrawSetSelectable(Textdraw5, true);
and i put this line on OnPlayerRequestClass
Код:
SelectTextDraw(playerid,COLOR_YELLOW);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
and last i put those in OnPlayerClickTextDraw
Код:
TextDrawHideForPlayer(playerid,Textdraw4);
TextDrawHideForPlayer(playerid,Textdraw5);
TextDrawHideForPlayer(playerid,Textdraw6);
CancelSelectTextDraw(playerid);
then compile is well done,
but in game there is a problem,
i just got in game and clicked those textdraws once and it worked,
but when i get in game and click one more time, it doesn't work.
what is wrong with me

?
Re: Problem from Clickable Textdraw -
Vince - 03.07.2012
I've had some problems with this as well. Adding a box (which may or may not be invisible) seemed to - at least partially - solve that problem.