Signature
stock register_menu(const title[], keys, const function[], outside = 0){ register_menucmd(register_menuid(title, outside), keys, function);}
Description
Provides a shorthand to register a working menu.
Notes
-
Combines the necessary calls to register_menuid() and
register_menucmd() into a single function.
Parameters
- title — Menu name
- keys — Key flags
- function — Callback function
- outside — Catch menus outside the calling plugin
No return value
Errors
-
If an invalid callback function is specified, an error will
be thrown.