[SOLVED][CS] New Menus: pressing Back/Next triggers radio commands
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:
|
Re: [CS] New Menus: pressing Back/Next triggers radio commands
I had this problem before too, haven't found a solution yet
|
Re: [CS] New Menus: pressing Back/Next triggers radio commands
After doing some testing, I noticed a couple things:
1. When you use a radio menu (for example), your "menu code" is kept at that radio menu's menu code until you use the "exit" option. 2. When you open a custom menu from AMXX on top of a default CS menu (like radio menu), it keeps the default CS menu's menu code. To fix this, you can just set the menu code to 0 every time you use show_menu() or menu_display(). This fix can also be applied to the AMXX core whenever it gets ready to be fixed. Thanks to Connor for the offset and function in a post of his. Code:
EDIT: Replied to the Bug Report. Hopefully this will be fixed in one of the next few developer builds. |
Re: [CS] New Menus: pressing Back/Next triggers radio commands
Quote:
|
All times are GMT -4. The time now is 08:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.