AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   read ranks from .ini file (https://forums.alliedmods.net/showthread.php?t=313442)

JocAnis 01-09-2019 14:01

read ranks from .ini file
 
hello guys. i have a .ini file with storing records by players, in non sorted way (meaning first line isnt the best result)
can anyone help how to determine who has the hightest 'something' from file, who is 2. and who is 3. ...? if its worth mentioning, not every player is saved in that file list, so not so many entries are there (cuz of time of reading file..?) and when player update his record that records is being updated in the file

JocAnis 01-09-2019 17:22

Re: read ranks from .ini file
 
tryed with loading all lines from file -> sortcustom1d -> print...but its working for one parsed element (bhops, which is the main thing top to be sorted) but i cant connect name or other parsed things from file to these sorted bhops

if i choose this method, i guess sorting by 4D would be in my case, which is totally nonsense...so any help is welcomed :)

EDIT: ok its fixed now with sort2d, if anyone needs it i can post it here


All times are GMT -4. The time now is 04:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.