View Single Post
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-10-2006 , 21:31   Re: Items being purchased when a user selects menu option
Reply With Quote #3

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 }
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu