The above post is unnecessary.
It surprises me how little people think about the things they are typing, and just copy the way others get things done. You name one of your variables iName and it doesn't occur to you that maybe that's the name of the option?
Code:
Foo()
{
new menu = menu_create( "Countries", "Handler" )
menu_additem( menu, "Sweden", "1", 0 )
// other items, display...
}
public Handler( id, menu, item )
{
new ChoiceName[32]
new access
new callback
menu_item_getinfo( menu, item, access, _, _, ChoiceName, 31, callback )
// ChoiceName = "Sweden" if the client chose that option
}
__________________