20.02.2009, 09:15
hi i have a problem with the menu exit.
in the housemenu dont exit when i press enter (menu exit)
and in the other menus, but when i press enter in the other menus, its show me the house menu
in the housemenu dont exit when i press enter (menu exit)
and in the other menus, but when i press enter in the other menus, its show me the house menu
pawn Код:
public OnPlayerExitedMenu(playerid)
{
new Menu:Current = GetPlayerMenu(playerid);
if (Current == hausmenu || hwaffen || hwaffen2)
{
ShowMenuForPlayer(hausmenu,playerid);
}
else
{
HideMenuForPlayer(Current,playerid);
return TogglePlayerControllable(playerid,true);
}
return 1;
}