Okay. so I need help sorting the players.
In my server functions can happen in
if (btn == "buttonname"){
//function
}
I have a leaderboard menu made that I want to display the top #10 players based on their gem count...
On button click i want the server to read the gemcount files in the directory
and order them from biggest to smallest. then select the top 10 and display to menu..
The files are in same folder as exe in sub folders.
the path is 'gemdb/' and all gemcount files are named after the players and have the value inside.
ex: gemdb/davies99.txt
content in ex file is just 484839
simple number....
Can someone make this for me?
The Menu to update after new function can be found in the paste
https://pastebin.com/MRQWmK8J