fixed missing menu text

This commit is contained in:
Felix Geyer 2004-08-19 22:21:11 +00:00
parent d19d570758
commit 4f371ccb6c
5 changed files with 17 additions and 15 deletions

View File

@ -544,7 +544,7 @@ public cmdPause(id,level,cid) {
if (activity==1) if (activity==1)
len += copy(msg[len],127-len,":") len += copy(msg[len],127-len,":")
else else
len += format(msg[len],127-len," %s:",name) len += format(msg[len],127-len," %s: ",name)
format(msg[len],127-len,"%L",players[i],g_Paused ? "UNPAUSE" : "PAUSE" ) format(msg[len],127-len,"%L",players[i],g_Paused ? "UNPAUSE" : "PAUSE" )
client_print(players[i],print_chat,"%s server",msg) client_print(players[i],print_chat,"%s server",msg)
} }

View File

@ -403,10 +403,10 @@ displayMapsMenu(id,pos) {
} }
if (end != g_mapNums) { if (end != g_mapNums) {
format(menuBody[len],511-len,"^n9. %L...^n0. %s", id, "MORE", id, pos ? "BACK" : "EXIT") format(menuBody[len],511-len,"^n9. %L...^n0. %L", id, "MORE", id, pos ? "BACK" : "EXIT")
keys |= MENU_KEY_9 keys |= MENU_KEY_9
} }
else format(menuBody[len],511-len,"^n0. %s", id, pos ? "BACK" : "EXIT") else format(menuBody[len],511-len,"^n0. %L", id, pos ? "BACK" : "EXIT")
new menuName[64] new menuName[64]
format(menuName,63,"%L","en","CHANGLE_MENU") format(menuName,63,"%L","en","CHANGLE_MENU")

View File

@ -83,7 +83,7 @@ new g_menuCmd[MENUS_NUMBER][] = {
"amx_cmdmenu", "amx_cmdmenu",
"amx_cvarmenu", "amx_cvarmenu",
"amx_cfgmenu", "amx_cfgmenu",
"amx_setlangmenu", "amx_langmenu",
"amx_statscfgmenu", "amx_statscfgmenu",
"amx_pausecfgmenu", "amx_pausecfgmenu",
@ -186,10 +186,10 @@ displayMenu(id,pos) {
} }
if (end != MENUS_NUMBER ) { if (end != MENUS_NUMBER ) {
format(menuBody[len],511-len,"^n9. %L...^n0. %s", id, "MORE", id, pos ? "BACK" : "EXIT") format(menuBody[len],511-len,"^n9. %L...^n0. %L", id, "MORE", id, pos ? "BACK" : "EXIT")
keys |= MENU_KEY_9 keys |= MENU_KEY_9
} }
else format(menuBody[len],511-len,"^n0. %s", id, pos ? "BACK" : "EXIT") else format(menuBody[len],511-len,"^n0. %L", id, pos ? "BACK" : "EXIT")
show_menu(id,keys,menuBody) show_menu(id,keys,menuBody)
} }

View File

@ -76,12 +76,14 @@ public client_infochanged(id) {
new lang[3] new lang[3]
get_user_info(id,"lang",lang,2) get_user_info(id,"lang",lang,2)
if ( lang_exists(lang) ) if ( strlen(lang)>0 ) {
copy(g_userLang[id],2,lang) if ( lang_exists(lang) )
else if ( g_userLang[id][0] ) copy(g_userLang[id],2,lang)
set_user_info(id,"lang",g_userLang[id]) else if ( g_userLang[id][0] )
else set_user_info(id,"lang",g_userLang[id])
set_user_info(id,"lang","en") else
set_user_info(id,"lang","en")
}
} }
#if defined DISPLAY_MSG #if defined DISPLAY_MSG
@ -129,7 +131,7 @@ showMenu(id) {
if ( access(id,ADMIN_CFG) ) { if ( access(id,ADMIN_CFG) ) {
new server_lang[64],sLang[3] new server_lang[64],sLang[3]
format(perso_lang,63,"%L",id,"SERVER_LANG") format(server_lang,63,"%L",id,"SERVER_LANG")
get_lang(g_menuLang[id][1],sLang) get_lang(g_menuLang[id][1],sLang)
len += format( menuBody[len],511-len,(g_coloredMenus ? "2. %s\R\r%s\w^n^n" : "2. %s %s^n^n"),server_lang,sLang ) len += format( menuBody[len],511-len,(g_coloredMenus ? "2. %s\R\r%s\w^n^n" : "2. %s %s^n^n"),server_lang,sLang )
len += format( menuBody[len],511-len,"3. %L",id,"SAVE_LANG" ) len += format( menuBody[len],511-len,"3. %L",id,"SAVE_LANG" )

View File

@ -198,10 +198,10 @@ displayMenu(id, pos) {
len += format(menu_body[len],511-len,g_coloredMenus ? "8. %L \y\R%s^n\w" len += format(menu_body[len],511-len,g_coloredMenus ? "8. %L \y\R%s^n\w"
: "8. %L %s^n", id, "SAVE_STOPPED", g_Modified ? "*" : "") : "8. %L %s^n", id, "SAVE_STOPPED", g_Modified ? "*" : "")
if (end != datanum){ if (end != datanum){
format(menu_body[len],511-len,"^n9. %L...^n0. %s", id, "MORE", id, pos ? "BACK" : "EXIT") format(menu_body[len],511-len,"^n9. %L...^n0. %L", id, "MORE", id, pos ? "BACK" : "EXIT")
keys |= MENU_KEY_9 keys |= MENU_KEY_9
} }
else format(menu_body[len],511-len,"^n0. %s", id, pos ? "BACK" : "EXIT") else format(menu_body[len],511-len,"^n0. %L", id, pos ? "BACK" : "EXIT")
show_menu(id,keys,menu_body,-1,"Pause/Unpause Plugins") show_menu(id,keys,menu_body,-1,"Pause/Unpause Plugins")
} }