SA-MP Forums Archive
Help With OnPlayerExitedMenu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With OnPlayerExitedMenu (/showthread.php?tid=269271)



Help With OnPlayerExitedMenu - [MKD]Max - 15.07.2011

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;
}



Re: Help With OnPlayerExitedMenu - Roko_foko - 15.07.2011

In menus you choose with spacebar, not with button 'enter'


Re: Help With OnPlayerExitedMenu - [MKD]Max - 15.07.2011

om g i dont mean that read again -.-