AMX Mod X API Documentation

Signature
native menu_destroy(menu);
Description

Destroys a menu. Player menus will be cancelled (although may still linger

on the HUD), and future attempts to access the menu resource will result in

an error.

Notes
  • This must be called if you create menus dynamically, otherwise you will

    leak memory. For normal dynamic menus, you will destroy the menu in the

    handler function (remembering to handle the case of a menu being cancelled,

    it must still be destroyed).

Parameters
  • menu Menu resource identifier.
No return value
Errors
  • Invalid menu resource.
Назад
Верх