View Single Post
Identity
Member
Join Date: Mar 2007
Old 03-14-2007 , 02:24   Re: New AMXX Menu System
Reply With Quote #19

Quote:
public menu_handler(id, menu, item)
{
//we don't want to deal with them if they exited a menu
if (item == MENU_EXIT)
{
menu_destroy(menu)
//Note that you will want to destroy the menu after they do something
return PLUGIN_HANDLED
}
Quote:
//lets finish up this function with a menu_destroy, and a return
menu_destroy(menu)
return PLUGIN_HANDLED
}
amxmodx.inc
//Destroys a menu - invalidates the handle
//This is safe, as it will go through the players and make
// sure they don't have this menu set anymore.

native menu_destroy(menu);

So this really executed after last menu_destroy called and in the example above it used correctly?
Identity is offline