anybody can help me please ?
why i cant select this textdraws ?
pawn Code:
Textdraw0 = TextDrawCreate(181.200012, 120.219993, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 14.933710);
TextDrawTextSize(Textdraw0, 33.200000, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 41215);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawBackgroundColor(Textdraw0, -2139062017);
TextDrawFont(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, true);
Textdraw1 = TextDrawCreate(384.599548, 122.713256, "usebox");
TextDrawLetterSize(Textdraw1, 0.000000, 14.853706);
TextDrawTextSize(Textdraw1, 237.199951, 0.000000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 0);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, -5963521);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 0);
TextDrawFont(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, true);
when i click on boxes, nothing happen
pawn Code:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0) SendClientMessage(playerid, -1, "TD0!");
else if(clickedid == Textdraw1) SendClientMessage(playerid, -1, "TD1!");
else if(_:clickedid == INVALID_TEXT_DRAW)
{
SelectTextDraw(playerid, 0xFF0000FF);
SendClientMessage(playerid, -1, "Don't Cancel Selection!");
}
return 1;
}