Help With OnPlayerExitedMenu
#1

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


Код:
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;
}
Reply


Messages In This Thread
Help With OnPlayerExitedMenu - by [MKD]Max - 15.07.2011, 19:33
Re: Help With OnPlayerExitedMenu - by Roko_foko - 15.07.2011, 19:37
Re: Help With OnPlayerExitedMenu - by [MKD]Max - 15.07.2011, 19:38

Forum Jump:


Users browsing this thread: 2 Guest(s)