12.03.2015, 12:39
i made this textdraw and i cant clik it
what i made wrong?
help me
what i made wrong?
PHP код:
if(strcmp(cmd, "/1", true) == 0)
{
print("sdadd");
SelectTextDraw(playerid, -1);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}
PHP код:
Textdraw5 = TextDrawCreate(227.000000, 93.593315, "usebox");
TextDrawLetterSize(Textdraw5, 0.000000, 12.625554);
TextDrawTextSize(Textdraw5, 54.888889, 0.000000);
TextDrawAlignment(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, true);//clik
TextDrawColor(Textdraw5, 0);
TextDrawUseBox(Textdraw5, true);
TextDrawBoxColor(Textdraw5, 102);
TextDrawSetShadow(Textdraw5, -26);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 0);
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != INVALID_TEXT_DRAW) {
if(clickedid == Textdraw5)
{
SendClientMessage(playerid, -1, "5");
}
else if(clickedid == Textdraw44)
{
SendClientMessage(playerid, -1, "44");
}
}
return 1; }