Raised This Month: $ Target: $400
 0% 

Menu to menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 05-16-2006 , 20:47   Menu to menu?
Reply With Quote #1

I was making a gun buy menu, but when they select the gun type how do I make it go to another menu displaying the guns? Here's my current code.
Code:
new g_Menu   public plugin_init()   {       register_plugin(PLUGIN, VERSION, AUTHOR)             register_clcmd("say /guns", "Menu_Command")             g_Menu = menu_create("Weapon menu", "Menu_Handle")       menu_additem(g_Menu, "Pistol", "1")       menu_additem(g_Menu, "SMG", "2")       menu_additem(g_Menu, "Rifle", "3")       menu_additem(g_Menu, "Other", "4") }   public Menu_Command(id, level, cid)   {       menu_display(id, g_Menu, 0)             return PLUGIN_HANDLED   }   public Menu_Handle(id, Menu, Item)   {       new szCommand[3],  Accesss, Callback             menu_item_getinfo(Menu, Item, Accesss, szCommand, 2, _, _, Callback)             switch(szCommand[0])       {           case '-':           {               return PLUGIN_HANDLED           }                     case '1':           {               client_print(id,print_chat,"No function yet")         }                     case '2':           {                client_print(id,print_chat,"No function yet")         }                     case '3':           {             client_print(id,print_chat,"No function yet")         }                     case '4':           {               client_print(id,print_chat,"No function yet")         }                   }             return PLUGIN_HANDLED   }
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 16:30.


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