11.04.2012, 20:15
(
Последний раз редактировалось Hanger; 12.04.2012 в 12:53.
)
When applied whilst player menu is shown, it will return INVALID_TEXT_DRAW in OnPlayerSelectTextDraw
Fix if using INVALID_TEXT_DRAW to check something:
pawn Код:
if(clickedid == Text:VehBuyMenu[6]) /* Back to vehicle model list */
{
if(shopping{playerid} == true)
{
ShowMenuForPlayer(CarList, playerid);
HideVehBuyText(playerid); // Contains HideTextDraw and CancelSelectTextDraw, nothing more
}
return 0;
}
pawn Код:
if(cilckedid == Text:INVALID_TEXT_DRAW && GetPlayerMenu(playerid) == Menu:INVALID_MENU)
{
}