Bugzilla – Bug 4778
new menus navigation (next/prev (8/9) buttons) bug (play radio)
Last modified: 2013-06-25 08:06:44 PDT
Hello, sorry for my english... In last version of cs 1.6 (build 4554) menu what created with new menus and have page navigation have bug... When you press next page button or previous page button (8/9) with this playing radio commands (8 - negative, 9 - enemy down). I don't know how fix this problem... AmxModX is latest - 1.8.2-dev-hg21 Hope you understand what i mean, help please, thanks in advance.
Forgot say: This occurs after play any radio command in game and then open the menu.
Is this only on AMX Mod X menus? Is it only on certain AMXX menus or all of them? Are your keys 8 and 9 bound to "menuselect 8" and "menuselect 9" ?
this is only in menus what use newmenus.inc... For example amxmodmenu work without problems... (but this menu bon't use newmenus.inc) keys bind is: bind "8" "slot8" bind "9" "slot9"
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(). To reduce massive code change for plugin coders, this would be easier fixed in the show_menu() and menu_display() functions themselves. All that is needed is to set the player's pdata offset 205 (m_iMenuCode) to 0.
(In reply to comment #4) Are you interested in posting a patch?
(In reply to comment #5) I have still yet to understand Mercurial to be able to post patches. I could easily write up the code difference if someone else were to post the patch.
X-olent, please post the file you have with the code changes and someone will be happy to make the diff. -- Andy
*** This bug has been marked as a duplicate of bug 3199 ***