16.10.2017, 10:44
When players press ESC the textdraw will be hidden but it's only works in first-time they press.
Textdraw will not be shown after pressing ESC also if I call ShowFoodMenu again, the textdraw will be shown but they are not clickable anymore, and messageslimit msg starts to spam..
NOTE: FoodMenu textdraws are related to PlayerText
Textdraw will not be shown after pressing ESC also if I call ShowFoodMenu again, the textdraw will be shown but they are not clickable anymore, and messageslimit msg starts to spam..
NOTE: FoodMenu textdraws are related to PlayerText
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid == INVALID_TEXT_DRAW)
{
CancelSelectTextDraw(playerid);
ShowFoodMenu(playerid, false);
}
return 0;
}


