Problem with 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 with clickable textdraw (
/showthread.php?tid=490640)
Problem with clickable textdraw -
TonyII - 27.01.2014
Hey, I am unable to click on the textdraw, it shows up but once I hover over it with my mouse nothing happens same result once I try clicking on it. Im not sure what is wrong with it
pawn Код:
//under ongamemodeinit
Textdraw0 = TextDrawCreate(219.000000, 176.000000, "Assault Rifle");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.700000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
//TextDrawUseBox(Textdraw0, 1);
//TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 319.000000, 0.000000);
TextDrawSetSelectable(Textdraw0, 1);
//under onplayerspawn
TextDrawShowForPlayer(playerid, Textdraw0);
SelectTextDraw(playerid, 0xA3B4C5FF);
Re: Problem with clickable textdraw -
Sawalha - 27.01.2014
did you add anything at OnPlayerClickTextDraw function? maybe be cause of that, (empty)