[Half-Life AMXX] / statscfg.sma Repository:
ViewVC logotype

Diff of /statscfg.sma

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 16, Fri Nov 16 15:12:40 2007 UTC revision 17, Fri Nov 16 15:29:57 2007 UTC
# Line 35  Line 35 
35  #include <amxmodx>  #include <amxmodx>
36  #include <amxmisc>  #include <amxmisc>
37    
38  #define MAX_MENU_DATA 64  #define MAX_MENU_DATA 72
39    
40  new g_menuData[MAX_MENU_DATA][32]  new g_menuData[MAX_MENU_DATA][32]
41  new g_menuDataVar[MAX_MENU_DATA][32]  new g_menuDataVar[MAX_MENU_DATA][32]
# Line 218  Line 218 
218          for (new a = start; a < end; ++a)          for (new a = start; a < end; ++a)
219          {          {
220                  keys |= (1<<k)                  keys |= (1<<k)
221                    /* Backwards compatibility hack - if the name starts with ST_, assume it is translation safe! */
222                    if (equal(g_menuData[a], "ST_", 3))
223                    {
224                            len += format(menu_body[len], 511-len, g_coloredMenus ? "%d. %L\y\R%L^n\w" : "%d. %L %L^n", ++k, id, g_menuData[a], id, get_xvar_num(g_menuDataId[a]) ? "ON" : "OFF")
225                    } else {
226                  len += format(menu_body[len], 511-len, g_coloredMenus ? "%d. %s\y\R%L^n\w" : "%d. %s %L^n", ++k, g_menuData[a], id, get_xvar_num(g_menuDataId[a]) ? "ON" : "OFF")                  len += format(menu_body[len], 511-len, g_coloredMenus ? "%d. %s\y\R%L^n\w" : "%d. %s %L^n", ++k, g_menuData[a], id, get_xvar_num(g_menuDataId[a]) ? "ON" : "OFF")
227          }          }
228            }
229    
230          if (g_menuDataNum == 0)          if (g_menuDataNum == 0)
231                  len += format(menu_body[len], 511-len, g_coloredMenus ? "\d%L\w" : "%L", id, "NO_STATS")                  len += format(menu_body[len], 511-len, g_coloredMenus ? "\d%L\w" : "%L", id, "NO_STATS")
# Line 282  Line 288 
288          {          {
289                  if (get_xvar_num(g_menuDataId[a]))                  if (get_xvar_num(g_menuDataId[a]))
290                  {                  {
291                            if (equal(g_menuData[a], "ST_", 3))
292                            {
293                                    format(text, 255, "%-24.23s ;%L", g_menuDataVar[a], LANG_SERVER, g_menuData[a])
294                            }
295                            else
296                            {
297                          format(text, 255, "%-24.23s ;%s", g_menuDataVar[a], g_menuData[a])                          format(text, 255, "%-24.23s ;%s", g_menuDataVar[a], g_menuData[a])
298                            }
299                          write_file(filename, text)                          write_file(filename, text)
300                  }                  }
301          }          }

Legend:
Removed from v.16  
changed lines
  Added in v.17

Contact
ViewVC Help
Powered by ViewVC 1.0.4