Raised This Month: $ Target: $400
 0% 

Player Menu...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-30-2005 , 10:37  
Reply With Quote #2

this works... use this somehow i dont get ur whole script so i wont go in it and change stuff

i think the prob was something in init like this :
Code:
register_menucmd(register_menuid("menu11"),1023,"menu_handler")
i guess u forgot the "menu_handler" thing or something
Code:
#include <amxmodx> #include <amxmisc> #include <fun> new arg1[32] public plugin_init() {     register_plugin("Menutest", "1.0.0", "[ --<-@ ]")     register_menucmd(register_menuid("menu11"),1023,"menu_handler")     register_concmd("amx_menutest", "menu22", ADMIN_MENU, "amx_menutest <player> to show menu to player") } public menu22(id)     {         read_argv( 1, arg1, 31 )         if ( equal( arg1, "" ) ) {         client_print( id, print_console, "[ --<-@ ] Wich player to show the menu?" )         client_print( id, print_console, "[ --<-@ ] Usage: amx_menutest <player>" )         return PLUGIN_HANDLED     }         new menubody[128], keys     format(menubody, 127, "Menu_Name^n^n1. 200 Health^n2. Half Gravity^n8. Exit")     keys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_8         new player = cmd_target( id, arg1, 0 )     show_menu( player, keys, menubody, 6, "menu11" )     return PLUGIN_HANDLED } public menu_handler(id, key) {     if( key == 0 )         {         set_user_health( id, 200 )     }     if( key == 1 )         {         set_user_gravity( id, 0.5 )     }     if( key == 7 )         {         return PLUGIN_HANDLED     }     new username[32]     get_user_name( id, username,31 )     client_print( 0, print_chat, "%s choosed #%i", username, key+1 ) // To se if it calls anything     return PLUGIN_HANDLED }
[ --<-@ ] Black Rose 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 23:42.


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