1. put the keys u want b4 the registeration of the menu and put key in the registerations
Code:
new key = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<9)
register_menucmd(register_menuid("Admin Gunshop Main Menu"),key,"Admin_Gunshop_Main_Action")
register_menucmd(register_menuid("Admin Gunshop - "),key,"Admin_Gunshop_Weapon_Action")
register_menucmd(register_menuid("Admin Weapon Addons - "),key,"Admin_Addons_Action")
2.now in the menu functions make sure that the first
line in the format will be exactly the menuid of the current menu
[EXAMPLE]:
Code:
new len = format(menu,sizeof(menu),"Gunshop Main Menu^n^n")
turnes into
Code:
new len = format(menu,sizeof(menu),"Admin Gunshop Main Menu^n^n")
also make sure that ur function has no other errors
3.if it doesnt work use another style to register ur keys
Code:
new keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5......
insted of
Code:
new key = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<9)