stock

register_menu

Syntax

stock register_menu(const title[], keys, const function[], outside = 0)

Description

Provides a shorthand to register a working menu.

Parameters

title Menu name
keys Key flags
function Callback function
outside Catch menus outside the calling plugin

Note

Combines the necessary calls to register_menuid() and
register_menucmd() into a single function.

Return

This function has no return value.

Error

If an invalid callback function is specified, an error will
be thrown.