11.08.2012, 05:00
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?