Quote:
// SQL query: SELECT Player, Rank, XP FROM HGRank ORDER BY XP DESC LIMIT 10
new rank;
rank= SQL_ReadResult(Query,1)
|
The first result is player, not rank. Rank is the second one, plus it's a string, so do this:
Code:
new szRank[CRXRANKS_MAX_RANK_LENGTH]
SQL_ReadResult(Query, 2, szRank, charsmax(szRank))
__________________