From e4db1231b058403b24c62346e86d797c862d474d Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Thu, 11 Mar 2021 15:47:11 +0100 Subject: [PATCH] Add missing menu callback information --- plugins/include/amxmisc.inc | 7 +++++++ plugins/include/amxmodx.inc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 2510afe9b4..a1b25b36de 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -603,6 +603,13 @@ stock get_datadir(name[], len) /** * Provides a shorthand to register a working menu. * + * @note The function is called in the following manner: + * id - Client index + * key - Menu key pressed + * + * @note For a list of possible menu key, see the MENU_KEY_* constants in + * amxconst.inc + * * @note Combines the necessary calls to register_menuid() and * register_menucmd() into a single function. * diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 16572616fa..b7d4b89327 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -2096,6 +2096,13 @@ native register_menuid(const menu[], outside = 0); /** * Registers a callback function to a menu id and keys. * + * @note The function is called in the following manner: + * id - Client index + * key - Menu key pressed + * + * @note For a list of possible menu key, see the MENU_KEY_* constants in + * amxconst.inc + * * @param menuid Menu id * @param keys Key flags * @param function Callback function