register_menu

Синтаксис

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

Употреба

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

Описание

Provides a shorthand to register a working menu.

Забележка

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

Връщаща стойност

Тази функция няма връщаща стойност.

Грешка

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