23.07.2009, 00:02
What he did wrong was he didn't put "AddMenuItem" into a callback, therefore he's redefining it.
Correct Use:
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
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
Correct Use:
pawn Код:
OnGameModeInit()
{
AddMenuItem(examplemenu,0,"Barbecue Sauce");
}
pawn Код:
OnGameModeInit()
{
AddMenuItem(examplemenu,0,"Barbecue Sauce");
AddMenuItem(examplemenu,1,"Ketchup");
AddMenuItem(examplemenu,2,"Mustard");
}
"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");
}