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
#2

In menus you choose with spacebar, not with button 'enter'
Reply
#3

om g i dont mean that read again -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)