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