help textdraw Clickable
#1

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;
    }
Reply
#2

Did you add
SelectTextDraw(playerid, color); ?
Reply
#3

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
Did you add
SelectTextDraw(playerid, color); ?
Yes, but dosent have efects (sorry for my bad english)
Reply
#4

up help me please
Reply
#5

You try to make clickable box?
Reply
#6

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
You try to make clickable box?
box that is clickable
Reply
#7

Try
pawn Код:
CreateTextDraw(x, y, "LD_SPAC:white");
TextDrawFont(text, 4);
TextDrawUseBox(text, 1);
TextDrawTextSize(text, sizex, sizey);
TextDrawColor(text, color);
This should work
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)