Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock void GetRanks()
- {
- delete g_hRanks;
- int i = 1;
- g_hRanks = CreateKeyValues("Rangi");
- BuildPath(Path_SM, sPath, sizeof(sPath), "configs/kento_rangi.cfg");
- if (!FileExists(sPath))
- SetFailState("File Not Found: %s", sPath);
- g_hRanks.ImportFromFile(sPath);
- if (!g_hRanks.GotoFirstSubKey())
- return;
- for(;;)
- {
- char sName[128];
- int iPoints;
- int iRounds;
- g_hRanks.GetSectionName(sName, sizeof(sName));
- iPoints = g_hRanks.GetNum("points");
- iRounds = g_hRanks.GetNum("rounds");
- g_sRanksNames[i] = sName;
- g_iRanks[i-1][0] = iPoints;
- g_iRanks[i-1][1] = iRounds;
- if(!g_hRanks.GotoNextKey() || i == 18)
- break;
- i++;
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement