How can i check if a player has a menu open or closed ?
i mean... i create a menu with menu_create (added some items with menu_additem blablabla) after I displayed it menu_display to that player.... but another plugin used
show_menu( 0, 0, "^n", 1 ); to destroy all menus from all players... and when the first plugin auto-destroyed the menu (created with menu_create) i receive an error... like that :
L 08/18/2015 - 23:26:42: Start of error session.
L 08/18/2015 - 23:26:42: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20150818.log")
L 08/18/2015 - 23:26:42: Invalid menu id 3(5)
L 08/18/2015 - 23:26:42: [AMXX] Displaying debug trace (plugin "plugin.amxx", version "1.0")
L 08/18/2015 - 23:26:42: [AMXX] Run time error 10: native error (native "menu_destroy")
L 08/18/2015 - 23:26:42: [AMXX] [0] race.sma::Auto-Refuse (line 317)
the issue is that we don't have a menu_exists... (
http://www.amxmodx.org/api/newmenus) and when i call the menu_destroy native, the menu is already destroyed.