15.07.2011, 19:33
When i enter someone from Curretn Menu Like Wheels Menu ANd Press On Enter To Exit Its Not give Me The
TuningMenu its show me the last one TuningMenu2
TuningMenu its show me the last one TuningMenu2
Код:
public OnPlayerExitedMenu(playerid) { new Menu:Main = GetPlayerMenu(playerid); new Menu:Current = GetPlayerMenu(playerid); HideMenuForPlayer(Current, playerid); ShowMenuForPlayer(TuningMenu,playerid); if(Main == TuningMenu) { HideMenuForPlayer(Main, playerid); TogglePlayerControllable(playerid, true); return 1; } new Menu:Current1 = GetPlayerMenu(playerid); HideMenuForPlayer(Current1, playerid); ShowMenuForPlayer(TuningMenu1,playerid); if(Main == TuningMenu1) { HideMenuForPlayer(Main, playerid); TogglePlayerControllable(playerid, true); return 1; } new Menu:Current2 = GetPlayerMenu(playerid); HideMenuForPlayer(Current2, playerid); ShowMenuForPlayer(TuningMenu2,playerid); if(Main == TuningMenu2) { HideMenuForPlayer(Main, playerid); TogglePlayerControllable(playerid, true); return 1; } return 1; }