1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

-stability fixes

-welcome has post-fixed connection indicator
This commit is contained in:
RaidMax
2015-03-14 11:42:36 -05:00
parent 73dfb9a612
commit b0e32e9a91
11 changed files with 193 additions and 74 deletions

View File

@ -350,7 +350,7 @@ namespace IW4MAdmin
//Returns top 8 players (we filter through them later)
public List<Stats> topStats()
{
String Query = String.Format("SELECT * FROM STATS WHERE SKILL > '{0}' ORDER BY SKILL DESC LIMIT 8", 20);
String Query = String.Format("SELECT * FROM STATS WHERE SKILL > '{0}' ORDER BY SKILL DESC LIMIT 8", 10);
DataTable Result = GetDataTable(Query);
List<Stats> Top = new List<Stats>();
@ -360,7 +360,7 @@ namespace IW4MAdmin
foreach (DataRow D in Result.Rows)
{
Stats S = new Stats(Convert.ToInt32(D["Number"]), Convert.ToInt32(D["DEATHS"]), Convert.ToDouble(D["KDR"]), Convert.ToDouble(D["SKILL"]));
if (S.Skill > 20)
if (S.Skill > 10)
Top.Add(S);
}
}