menu_find_id

Синтаксис

native menu_find_id(menu, page, key);

Употреба

menu
Menu resource identifier.
page
Page on the menu.
key
Key pressed (from 1 to 10).

Описание

Given a page on a menu and a keypress on that page, returns the item id selected.
If the item is less than 0, a special option was chosen (such as MENU_EXIT).

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

Item identifier, or <0 for a special selection code.

Грешка

Invalid menu resource.