fixed the rank displaying by adding qoutation marks
This commit is contained in:
parent
f7255270a2
commit
4ff5a119d0
@ -493,6 +493,6 @@ public void OnClientPostAdminCheck(int client)
|
||||
g_cvHlstatsServerName.GetString(sServer, sizeof(sServer));
|
||||
|
||||
char sQuery[512];
|
||||
Format(sQuery, sizeof(sQuery), "SELECT COUNT(*) AS rank FROM hlstats_Players WHERE hlstats_Players.game = '%s' AND hideranking = 0 AND skill > (SELECT skill from hlstats_Players JOIN hlstats_PlayerUniqueIds ON hlstats_Players.playerId = hlstats_PlayerUniqueIds.playerId WHERE uniqueId = '%s' AND hlstats_PlayerUniqueIds.game = '%s')", sServer, sAuth, sServer);
|
||||
Format(sQuery, sizeof(sQuery), "SELECT COUNT(*) AS 'rank' FROM hlstats_Players WHERE hlstats_Players.game = '%s' AND hideranking = 0 AND skill > (SELECT skill from hlstats_Players JOIN hlstats_PlayerUniqueIds ON hlstats_Players.playerId = hlstats_PlayerUniqueIds.playerId WHERE uniqueId = '%s' AND hlstats_PlayerUniqueIds.game = '%s')", sServer, sAuth, sServer);
|
||||
g_hDatabase.Query(TQueryCB, sQuery, GetClientUserId(client));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user