Jump to content
  • 0

pomoc TextDraw


DNLS

Dotaz

Okey. Myslel sem si že to dám sám, ale zkouším vše přes 2 hodiny a už jsem v koncích. Jde o to, že se má zobrazit textdraw. Zobrazí se v pohodě. Jenomže následuje to, když mám kliknout na křížek (X) a nic to neudělá. Mám nastavený TextSize a povolený Selecttable. 

new Text:Textdraw2;

 

public OnFilterScriptInit()
{
           Textdraw2 = TextDrawCreate(564.000000, 132.000000, "X");
           TextDrawTextSize(Textdraw2, 564.000000, 132.000000);
           TextDrawBackgroundColor(Textdraw2, 255);
           TextDrawFont(Textdraw2, 1);
           TextDrawLetterSize(Textdraw2, 0.800000, 3.000000);
           TextDrawColor(Textdraw2, -16776961);
           TextDrawSetOutline(Textdraw2, 0);
           TextDrawSetProportional(Textdraw2, 1);
           TextDrawSetShadow(Textdraw2, 1);
           TextDrawSetSelectable(Textdraw2, true);

           return 1;

}

 

 

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SUBMISSION)
    {
              TextDrawShowForPlayer(playerid, Textdraw2)
              SelectTextDraw(playerid, 0xFF4040AA);
               }
     return 1;
}

 

 

 

 

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
   if(clickedid == Textdraw2)
   {
        CancelSelectTextDraw(playerid);
        SendClientMessage(playerid, -1, "Zavřel si menu");
   }
  return 1;
}

 

 

 

 

Za odpovědi děkuji :)

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

Lock, již to mám. Na místo  TextDrawTextSize(Textdraw2, 564.000000, 132.000000); jsem tam dal 640 480, což je podle SAMP wiki stejné jako textdrawcreate.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...