Bug 4778 - new menus navigation (next/prev (8/9) buttons) bug (play radio)
new menus navigation (next/prev (8/9) buttons) bug (play radio)
Status: RESOLVED DUPLICATE of bug 3199
Product: AMX Mod X
Classification: Unclassified
Component: Core
trunk
All All
: P3 major
Assigned To: amxmodx-bugs@alliedmods.net
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-06 13:24 PST by alexalx
Modified: 2013-06-25 08:06 PDT (History)
5 users (show)

See Also:
dvander: blocking‑1.8.2+


Attachments

Description alexalx 2011-01-06 13:24:56 PST
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.
Comment 1 alexalx 2011-01-06 13:26:41 PST
Forgot say: 

This occurs after play any radio command in game and then open the menu.
Comment 2 David Anderson [:dvander] 2011-01-06 17:50:48 PST
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" ?
Comment 3 alexalx 2011-01-06 17:55:57 PST
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"
Comment 4 X-olent 2011-06-17 08:01:31 PDT
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.
Comment 5 David Anderson [:dvander] 2011-06-19 23:14:09 PDT
(In reply to comment #4)
Are you interested in posting a patch?
Comment 6 X-olent 2011-06-20 05:12:31 PDT
(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.
Comment 7 DynamicBits 2011-11-12 08:36:13 PST
X-olent, please post the file you have with the code changes and someone will be happy to make the diff.

--
Andy
Comment 8 Vincent Herbet [:Arkshine] 2013-06-25 08:06:44 PDT

*** This bug has been marked as a duplicate of bug 3199 ***

Note You need to log in before you can comment on or make changes to this bug.