Raised This Month: $ Target: $400
 0% 

Keys in show_menu and register_menucmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rolnaaba
Veteran Member
Join Date: May 2006
Old 04-06-2007 , 10:44   Re: Keys in show_menu and register_menucmd
Reply With Quote #2

?? 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; }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
 



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 06:45.


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