help textdraw Clickable - 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: help textdraw Clickable (
/showthread.php?tid=595282)
help textdraw Clickable -
iWiNeR - 30.11.2015
Hey guys i'm doing a Clickable TextDraw system but not this worked the TextDraw appear but when I click nothing happens
follows the codes below
pawn Код:
Bank[16] = TextDrawCreate(315.0, 145.357772, "usebox");
TextDrawLetterSize(Bank[16], 0.000000, 4.381600);
TextDrawTextSize(Bank[16], 50.0, 175.0);
TextDrawAlignment(Bank[16], 2);
TextDrawColor(Bank[16], 0);
TextDrawUseBox(Bank[16], true);
TextDrawBoxColor(Bank[16], -1205847297);
TextDrawSetShadow(Bank[16], 0);
TextDrawSetOutline(Bank[16], 0);
TextDrawFont(Bank[16], 0);
TextDrawSetSelectable(Bank[16], 1);
pawn Код:
if(clickedid == Bank[16]) // Retirar
{
TextDrawHideForPlayer(playerid, Bank[15]);
TextDrawHideForPlayer(playerid, Bank[16]);
TextDrawHideForPlayer(playerid, Bank[17]);
TextDrawHideForPlayer(playerid, Bank[18]);
TextDrawHideForPlayer(playerid, Bank[19]);
ShowPlayerDialog(playerid, DIALOG_RETIRAR, DIALOG_STYLE_INPUT, "BANCO LS - WITHDRAW", "\n\tAmmount to withdraw\n", "Withdraw", "Cancel");
return 1;
}
Re: help textdraw Clickable -
UltraScripter - 30.11.2015
Did you add
SelectTextDraw(playerid, color); ?
Re: help textdraw Clickable -
iWiNeR - 01.12.2015
Quote:
Originally Posted by UltraScripter
Did you add
SelectTextDraw(playerid, color); ?
|
Yes, but dosent have efects (sorry for my bad english)
Re: help textdraw Clickable -
iWiNeR - 01.12.2015
up help me please
Re: help textdraw Clickable -
UltraScripter - 01.12.2015
You try to make clickable box?
Re: help textdraw Clickable -
iWiNeR - 01.12.2015
Quote:
Originally Posted by UltraScripter
You try to make clickable box?
|
box that is clickable
Re: help textdraw Clickable -
UltraScripter - 01.12.2015
Try
pawn Код:
CreateTextDraw(x, y, "LD_SPAC:white");
TextDrawFont(text, 4);
TextDrawUseBox(text, 1);
TextDrawTextSize(text, sizex, sizey);
TextDrawColor(text, color);
This should work
Re: help textdraw Clickable -
iWiNeR - 01.12.2015
Quote:
Originally Posted by UltraScripter
Try
pawn Код:
CreateTextDraw(x, y, "LD_SPAC:white"); TextDrawFont(text, 4); TextDrawUseBox(text, 1); TextDrawTextSize(text, sizex, sizey); TextDrawColor(text, color);
This should work
|
i don't understand as this will help me my problem is when the player will click the TextDraw appears but when I click nothing happens that's the problem