Raised This Month: $ Target: $400
 0% 

Menu Items not working (I have no idea why)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-02-2005 , 20:51  
Reply With Quote #1

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)
haimmaik is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode