[Solved]Need help even I USED THE WIKI!!!!
#3

What he did wrong was he didn't put "AddMenuItem" into a callback, therefore he's redefining it.

Correct Use:
pawn Код:
OnGameModeInit()
{
  AddMenuItem(examplemenu,0,"Barbecue Sauce");
}
EDIT*: Now I don't work with menus simply because I make my own customized menus with TextDraws, but I thought the second parameter in "AddMenuItem" was the column, and not row. What I mean is, if he did
pawn Код:
OnGameModeInit()
{
  AddMenuItem(examplemenu,0,"Barbecue Sauce");
  AddMenuItem(examplemenu,1,"Ketchup");
  AddMenuItem(examplemenu,2,"Mustard");
}
It would look like
"Barbecue Sauce Ketchup Mustard"
and the player would only be able to select "Barbecue Sauce"
so I think it's supposed to be
pawn Код:
OnGameModeInit()
{
  AddMenuItem(examplemenu,0,"Barbecue Sauce");
  AddMenuItem(examplemenu,0,"Ketchup");
  AddMenuItem(examplemenu,0,"Mustard");
}
Reply


Messages In This Thread
[Solved]Need help even I USED THE WIKI!!!! - by speedruntrainer - 22.07.2009, 23:53
Re: Need help even I USED THE WIKI!!!! - by coole210 - 22.07.2009, 23:58
Re: Need help even I USED THE WIKI!!!! - by Joe Staff - 23.07.2009, 00:02
Re: Need help even I USED THE WIKI!!!! - by speedruntrainer - 23.07.2009, 00:17
Re: [Solved]Need help even I USED THE WIKI!!!! - by Joe Staff - 23.07.2009, 01:27
Re: [Solved]Need help even I USED THE WIKI!!!! - by speedruntrainer - 23.07.2009, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)