Add missing menu callback information

This commit is contained in:
OciXCrom 2021-03-11 15:47:11 +01:00
parent bee4b47b07
commit e4db1231b0
2 changed files with 14 additions and 0 deletions

View File

@ -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.
*

View File

@ -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