Quote:
Originally Posted by WildCard65
Code of how your firing it/obtaining it?
|
I'm running it as a private forward.
here's the code associated with it.
typeset -> "function void (Menu menu);"
PHP Code:
// In OnPluginStart()
g_hForwards[OnMenu] = CreateForward(ET_Ignore, Param_Cell);
void Call_OnMenuFwd(Menu menu)
{
Call_StartForward(g_hForwards[OnMenu]);
Call_PushCell(menu); //Call_PushCellRef(menu);
Call_Finish();
}
// In menu command
Menu gamemenu = new Menu(MenuHandler_PickGame);
gamemenu.SetTitle("Gamemode Menu: ");
gamemenu.AddItem("-1", "None (Random Gamemode)");
ManageMenu( gamemenu ); // in handler.sp
Call_OnBossMenu(gamemenu);
gamemenu.Display(client, MENU_TIME_FOREVER);
__________________