Raised This Month: $ Target: $400
 0% 

My WeaponMenu Doesn't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 03-20-2005 , 01:30   My WeaponMenu Doesn't work
Reply With Quote #1

My weapon menu doesn't work. I get six errors with this: What did I do wrong?

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {   register_plugin("Weapon Menu", "0.10", "NiGHTFiRE")   new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2| MENU_KEY_3   register_menucmd(register_menuid("Which Weapon?"), keys, "giveWeapon")   register_clcmd("giveme", "showWeaponmenu")   public showWeaponMenu(id) {      new menu[192]      new keys = MENU_KEY_0 |MENU_KEY_1 |MENU_KEY_2|MENU_KEY_3            format(menu, 191, "Which Weapon?^n^n1. AK47^n2. M4A1^n3. AWP^n4. Deagle")      show_menu(id, keys, menu)      return PLUGIN_HANDLED } public giveWeapon(id, key) {     if (key == 0)     {         give_item(id, "weapon_ak47")       } else if  (key == 1) {        give_item(id, "weapon_m4a1")       } else if (key == 2) {         give_item(id, "weapon_awp")       } else if (key == 3) {        give_item(id, "weapon_deagle"         } }

Please give me examples with code so I can learn.
Thanks
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
 



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 14:14.


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