Buy menu not open...
And old-school menus... but I register them like this:
Code:
/*
Description: Function will register all menus for all languages
*/
public LANG_SetMenus()
{
new iTotalLanguages = get_langsnum();
new lang[3], menu[128];
new curMenuId = -1, highestMenuId = -1;
new iLang, iMenu;
// Loop through every menu
for ( iMenu = 0; iMenu < TOTAL_MENUS; iMenu++ )
{
// Register the menu names for each language
for ( iLang = 0; iLang < iTotalLanguages; iLang++ )
{
get_lang ( iLang, lang );
if ( lang_exists( lang ) )
{
formatex ( menu, 127, "%L", lang, MENU_NAMES[iMenu] );
curMenuId = register_menuid ( menu );
if ( curMenuId > highestMenuId )
{
register_menucmd ( curMenuId, 1023, MENU_CALLBACK[iMenu] );
highestMenuId = curMenuId;
}
}
}// End language loop
}// End menu loop
}
__________________