Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing menu functions callback information #941

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions plugins/include/amxmisc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
7 changes: 7 additions & 0 deletions plugins/include/amxmodx.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down