Clickable Textdraw issue
#7

Quote:
Originally Posted by Oh
Посмотреть сообщение
pawn Код:
Textdraw48                      =TextDrawCreate(86.000000, 425.000000, "Exit Game");
TextDrawAlignment   (Textdraw48, 2);
TextDrawBackgroundColor (Textdraw48, 255);
TextDrawFont                (Textdraw48, 2);
TextDrawLetterSize      (Textdraw48, 0.370000, 1.000000);
TextDrawColor               (Textdraw48, -1);
TextDrawSetOutline      (Textdraw48, 1);
TextDrawSetProportional (Textdraw48, 1);
TextDrawUseBox          (Textdraw48, 1);
TextDrawBoxColor            (Textdraw48, 150);
TextDrawTextSize            (Textdraw48, 320.000000, 79.000000);
TextDrawSetSelectable(Textdraw48, 1);

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid != INVALID_TEXT_DRAW)
    {
    if(clickedid == Textdraw48)
    {
        SendClientMessage(playerid, COLOR_RED, "1");
        CancelSelectTextDraw(playerid);
    }
    }
    return 0;
}
----

Tried everything to get it working.. Literally hours and hours and hours and hours and it just won't work. Tried modfiying TextDrawBoxSize, Tried making it selectable before it activates the players mouse, Tried checking if it wasn't equal to Invalid Text Draw before using it.. I could go on for hours. What is wrong with this textdraw?
The problem is the Letter Size:
Код:
TextDrawLetterSize		(Textdraw48, 0.370000, 1.000000);
The AREA of: 0.37 and 1.00 is so Small for Click! You need to increase this for work properly, like: 5.0, 5.0
Reply


Messages In This Thread
Clickable Textdraw issue - by Oh - 11.08.2012, 05:00
Re: Clickable Textdraw issue - by Oh - 12.08.2012, 02:17
Re: Clickable Textdraw issue - by Jarnu - 12.08.2012, 02:23
Re: Clickable Textdraw issue - by [MM]18240[FMB] - 12.08.2012, 02:31
Re: Clickable Textdraw issue - by Oh - 12.08.2012, 04:25
Re: Clickable Textdraw issue - by Nicholas. - 12.08.2012, 04:31
Re: Clickable Textdraw issue - by Hayden_Almeida - 15.12.2015, 18:45
Re: Clickable Textdraw issue - by Ritzy2K - 16.12.2015, 04:46

Forum Jump:


Users browsing this thread: 1 Guest(s)