Menu bug
#1

I don't understand, what the problem with this. When I open a menu using command, the gamemode open other menu.

Code:
Код:
    DestroyMenuEx(Wait);
		Wait = CreateMenu("Gas",2,30.0,140.0,220.0,0.0);
		if(IsValidMenu(Wait)){
		  new string[128];
		  SetMenuColumnHeader(Wait,0,"Combustible");
		  SetMenuColumnHeader(Wait,1,"Price");
	 	  AddMenuItem(Abastecendo,0,"Gasoline");
			format(string,sizeof(string),"$%d",ValuerGasoline);
	 	  AddMenuItem(Wait,1,string);
	 	  AddMenuItem(Wait,0,"Gasoline Podium");
	 	  	format(string,sizeof(string),"$%d",ValuerPodium);
	 	  AddMenuItem(Wait,1,string);
	 	  AddMenuItem(Wait,0,"Diesel");
	 	 	format(string,sizeof(string),"$%d",ValuerDiesel);
	 	  AddMenuItem(Wait,1,string);
	 	  AddMenuItem(Wait,0,"Alcohol");
	 		format(string,sizeof(string),"$%d",ValuerAlcohol);
	 	  AddMenuItem(Wait,1,string);
		}
		ShowMenuForPlayer(Wait,playerid);
		SetPlayerControl(playerid,0);
		return 1;
	}
In start script exist: New Menu:Wait.

Thanks

Reply


Messages In This Thread
Menu bug - by Marshew_DD - 01.12.2009, 13:51
Re: Menu bug - by dice7 - 01.12.2009, 13:57
Re: Menu bug - by Marshew_DD - 01.12.2009, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)