Raised This Month: $32 Target: $400
 8% 

[BUG] player_menu_info always returns 1 on listenserver


  
 
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-21-2007 , 22:24   [BUG] player_menu_info always returns 1 on listenserver
#1

Basically as the title says... Try doing this after joining a team:

new menuUp = player_menu_info( id, menu_id, keys );

Printing the values shows something such as:

menuUp: 1
menu_id: -26
keys: -1

So i'm basically checking for a positive menu_id as well, but I believe this is still a bug worth reporting.

TY,
Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 01-21-2007 , 22:40   Re: [BUG] player_menu_info always returns 1 on listenserver
#2

I can't decide whether to classify this as a bug. A negative menuid means a VGUI message was sent. It's too bad though that those have no explicit time-out so there's no way to explicitly unset the value.

However, the documentation explicitly says the value will be >0 AND it the intent was for it to be only for plugin-level menus.
__________________
egg
BAILOPAN is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-22-2007 , 00:48   Re: [BUG] player_menu_info always returns 1 on listenserver
#3

I understand what you're saying... So is there no possible way to determine when a VGUI menu has closed? Then specify a timeout similar to non-VGUI's?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 01-22-2007 , 02:41   Re: [BUG] player_menu_info always returns 1 on listenserver
#4

If I remember good - menuid "-26" and "-27" it was either team selection or skin menu opened. It was the same problem with get_user_menu function I was using since 2 years (it was the first time I tried to figure out the problem with overwritting menus of one plugin by other plugins). Finally I'm using in the code the check if that menuid is grater than 0 - that means some hud menu is displayed. If it's negative or 0 - I'm overwritng it. If I remember good those days Bail told me something about hardiness with hooking if the VGUI menu is already closed by the user - that's why You still have that menuid returned by these functions (get_user_menu and player_menu_info) instead cleared up to 0.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-22-2007 , 16:02   Re: [BUG] player_menu_info always returns 1 on listenserver
#5

I just made an entry here to help people:

http://www.amxmodx.org/funcwiki.php?...info&go=search
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 


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 18:22.


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