Raised This Month: $ Target: $400
 0% 

Why isn't this working?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
-Demonsthenes-
Junior Member
Join Date: Mar 2006
Old 04-08-2006 , 21:43  
Reply With Quote #8

Code:
#include <amxmodx> #define Keysmenuname (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<9) // Keys: 1234560 public plugin_init() {     register_plugin("gaben",".1","amxmodxGabenNoob")     register_menucmd(register_menuid("menuname"), Keysmenuname, "Pressedmenuname")     register_clcmd("gaben","Showmenuname") } public Showmenuname(id) {     new menu_text[255] = "menu name"     format(menu_text,255,"%s^n1. gaben",menu_text)     format(menu_text,255,"%s2. yams^n",menu_text)     format(menu_text,255,"%s3. turtle^n",menu_text)     format(menu_text,255,"%s4. squirrel^n",menu_text)     format(menu_text,255,"%s5. exit game^n",menu_text)     format(menu_text,255,"%s6. sandwhich^n",menu_text)     format(menu_text,255,"%s0. Exit^n",menu_text)     show_menu(id, Keysmenuname, menu_text, -1, "menuname") } public Pressedmenuname(id, key) {     switch (key) {         case 0: func1(id)         case 1: func2(id)           case 2: func3(id)         case 3: func4(id)         case 4: func5(id)         case 5: func6(id)         case 9: return PLUGIN_HANDLED           }     return PLUGIN_HANDLED } public func1(id) {     client_print(id,print_chat,"1") } public func2(id) {     client_print(id,print_chat,"2") } public func3(id) {     client_print(id,print_chat,"3") } public func4(id) {     client_print(id,print_chat,"4") } public func5(id) {     client_print(id,print_chat,"5") } public func6(id) {     client_print(id,print_chat,"6") }
-Demonsthenes- 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:35.


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