Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int GetPoints(string username)
- {
- int points;
- points = int.Parse(IniReadValue("#noxscourge." + username, "Points"));
- return points;
- }
- public int Compare(int x, int y)
- {
- return (((x - y) >> 0x1F) | (int)((uint)(-(x - y)) >> 0x1F));
- }
- public void ReadLine()
- {
- System.IO.StreamReader file = new System.IO.StreamReader(AppDomain.CurrentDomain.BaseDirectory + "Points.ini");
- string line;
- while((line = file.ReadLine()) != null)
- {
- if(line.Contains("#noxscourge"))
- {
- int i;
- i = 0;
- string newUser;
- int newPoints;
- string lastUser;
- int lastPoints;
- string username = line.Split(new string[] { "#noxscourge.", "]" }, StringSplitOptions.None)[1];
- newUser = username;
- newPoints = GetPoints(username);
- pointsTop10[i] = newPoints;
- usernamesTop10[i] = newUser;
- i++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement