Raised This Month: $ Target: $400
 0% 

[SOLVED][CS] New Menus: pressing Back/Next triggers radio commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 06-16-2011 , 22:48   [SOLVED][CS] New Menus: pressing Back/Next triggers radio commands
Reply With Quote #1

Using AMXX new menu system, if the menu has multiple pages and you select Back/Next options, report radio messages will be triggered automatically ("8. Negative" and "9. Enemy Down").

NOTE: it seems this only happens if you have used any of the "radio3" commands before calling the menu.

Is anything wrong with the code or is this a bug in AMXX's new menu system? (someone filed a bug report about this but it's yet UNCONFIRMED)

Code:
#include <amxmodx> public plugin_init() {     register_plugin("New Menus Bug", "0", "test")     register_clcmd("say menu", "show_newmenu") } public show_newmenu(id) {     new menuid = menu_create("New Menu", "new_menu_handle")     menu_additem(menuid, "1", "1")     menu_additem(menuid, "2", "2")     menu_additem(menuid, "3", "3")     menu_additem(menuid, "4", "4")     menu_additem(menuid, "5", "5")     menu_additem(menuid, "6", "6")     menu_additem(menuid, "7", "7")     menu_additem(menuid, "8", "8")     menu_additem(menuid, "9", "9")     menu_display(id, menuid) } public new_menu_handle(id, menuid, item) {     // Menu was closed     if (item == MENU_EXIT)     {         menu_destroy(menuid)         return PLUGIN_HANDLED;     }         // Retrieve and display item number     new number[2], dummy     if (menu_item_getinfo(menuid, item, dummy, number, charsmax(number), _, _, dummy))         client_print(id, print_chat, "You selected item number %s", number)         menu_destroy(menuid)     return PLUGIN_HANDLED }
__________________

Last edited by MeRcyLeZZ; 06-19-2011 at 01:39. Reason: solved
MeRcyLeZZ is offline
 


Thread Tools
Display Modes

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


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