?? that doesnt make sense your register the keys that you will use in the show_menu, when u use register_menucmd
Code:
#define MENU_KEYS (1<<0)|(1<<1)
register_menucmd(register_menuid("MENU NAME"), MENU_KEYS, "menu_handle");
register_clcmd("say /menu", "show_menu_func");
public show_menu_func(id) {
show_menu(id, MENU_KEYS, "WHAT MENU SAYS");
return PLUGIN_HANDLED;
}
public menu_handle(id, key) {
switch(key) {
case 1: client_print(id, print_chat, "MENU ITEM 1 SECLECTED");
case 2: client_print(id, print_chat, "MENU ITEM 2 SECLECTED");
default: return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
__________________