i cant make clik BOX
#1

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
Reply
#2

Maybe write it like:

Код:
TextDrawShowForPlayer(playerid, Textdraw5);
SelectTextDraw(playerid, -1);
Should work...get the middle code block called in the script?
Reply
#3

nope
Reply
#4

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) {
Reply
#5

i know, but i have pleblem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)