AMX Mod X API Documentation

Signature
native menu_find_id(menu, page, key);
Description

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).

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

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

Errors
  • Invalid menu resource.
Назад
Верх