SA-MP Forums Archive
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(playeridTextdraw5);
    return 
1;

PHP код:
Textdraw5 TextDrawCreate(227.00000093.593315"usebox");
TextDrawLetterSize(Textdraw50.00000012.625554);
TextDrawTextSize(Textdraw554.8888890.000000);
TextDrawAlignment(Textdraw51);
TextDrawSetSelectable(Textdraw5true);//clik
TextDrawColor(Textdraw50);
TextDrawUseBox(Textdraw5true);
TextDrawBoxColor(Textdraw5102);
TextDrawSetShadow(Textdraw5, -26);
TextDrawSetOutline(Textdraw50);
TextDrawFont(Textdraw50); 
PHP код:
public OnPlayerClickTextDraw(playeridText: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