hey. Im fairly new to mirc, but experienced enough to understand most commands.
At the moment im working on a trivia bot. Its pretty much complete, except for the highscore system. Currently, im using an external .txt file to store the scores of each user. The file is set out like below:
name x
name x
name x
name x
name x
Where name is the persons username, and x is their score in the game. I am really clueless as to how i can sort all of the scores into a descending list of values.
Just recently, i have also discovered hash tables. I really like them, and they seem much more convenient than constantly getting data from external text files. I know basically how to create, save, load, free, extract data, but i am still unsure how to sort all of the data in a table into a descending list of values.
If anyone has any idea how i might be able to do this, either using my current scoring system with text files. or with hash tables, please post here. All help is greatly appreciated.
Thanks,
Dan.