Raised This Month: $ Target: $400
 0% 

Why this menu not working...?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-29-2006 , 14:47   Why this menu not working...?
Reply With Quote #1

Code:
new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2     register_menucmd(register_menuid("Silver Weapons Mod"),keys,"giveWeapon")
that is plugin init

Code:
//*****{SHOWS MENU}***** public showWeaponMenu(id)   {       new menu[192]       new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2           format(menu, 191, "Silver Weapons Mod^n^n1. Silver AK47^n2. Silver M4A1^n3. Silver AWP^n")       show_menu(id, keys, menu)       return PLUGIN_HANDLED   } //*****{GETS BUTTON U CHOOSE ON MENU}***** public giveWeapon(id, key)   {       if (key == 0)       {           funcbuyak(id)     }     else if (key == 1)       {           funcbuym4(id)     }     else if (key == 2)     {           funcbuyawp(id)     } }
and that shows the menu and gets key you press but for some reason when you choose the third option is does not execute the third, why lol?
__________________
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 16:24.


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