06.04.2014, 09:38
Your query is wrong
SELECT user, Score FROM `players` ORDER BY `Score` DESC LIMIT 5
also you have 5 Ranks, but at top[] it goes to 6
printf("Rank 1: %s, Rank 2: %s, Rank 3: %s, Rank 4: %s, Rank 5: %s", top[0], top[1], top[2], top[3], top[4], top[5]);
SELECT user, Score FROM `players` ORDER BY `Score` DESC LIMIT 5
also you have 5 Ranks, but at top[] it goes to 6
printf("Rank 1: %s, Rank 2: %s, Rank 3: %s, Rank 4: %s, Rank 5: %s", top[0], top[1], top[2], top[3], top[4], top[5]);