22.06.2015, 17:16
This totally depends on how you store your stuff.
If its mysql/sqlite, with playernames and xp in a single table, then something like this would do it
SELECT your_name_field FROM your_player_table ORDER BY your_xp_field DESC LIMIT 400, 1
(sort players by xp descending, fetch 1 line at offset 400)
If youre using files for the data then its a lot more complicated.
If its mysql/sqlite, with playernames and xp in a single table, then something like this would do it
SELECT your_name_field FROM your_player_table ORDER BY your_xp_field DESC LIMIT 400, 1
(sort players by xp descending, fetch 1 line at offset 400)
If youre using files for the data then its a lot more complicated.