i cant make clik BOX - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i cant make clik BOX (
/showthread.php?tid=567253)
i cant make clik BOX -
Kuroki - 12.03.2015
i made this textdraw and i cant clik it
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; }
help me
AW: i cant make clik BOX -
Kaliber - 12.03.2015
Maybe write it like:
Код:
TextDrawShowForPlayer(playerid, Textdraw5);
SelectTextDraw(playerid, -1);
Should work...get the middle code block called in the script?
Re: i cant make clik BOX -
Kuroki - 12.03.2015
nope
Re: i cant make clik BOX -
Gammix - 12.03.2015
https://sampwiki.blast.hk/wiki/TextDrawTextSize
Textsize params X & Y must not be 0.0, any of them.
You also don't need this check:
pawn Код:
if(_:clickedid != INVALID_TEXT_DRAW) {
Re: i cant make clik BOX -
Kuroki - 12.03.2015
i know, but i have pleblem