mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
fixed weird issue of players with 0 skill showing up in topstats
client name changes are now updated in the database oops removed clientindex for admins command
This commit is contained in:
@ -170,7 +170,7 @@ namespace IW4MAdmin
|
||||
|
||||
public List<Stats> topStats()
|
||||
{
|
||||
String Query = String.Format("SELECT * FROM STATS WHERE SKILL > '{0}' LIMIT 4", 20);
|
||||
String Query = String.Format("SELECT * FROM STATS WHERE SKILL > '{0}' ORDER BY SKILL DESC LIMIT 4", 20);
|
||||
DataTable Result = GetDataTable(Query);
|
||||
|
||||
List<Stats> Top = new List<Stats>();
|
||||
@ -180,7 +180,8 @@ 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"]));
|
||||
Top.Add(S);
|
||||
if (S.Skill > 20)
|
||||
Top.Add(S);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user