mIRC Home    About    Download    Register    News    Help

Print Thread
#245808 08/05/14 11:47 PM
Joined: Mar 2014
Posts: 52
P
Babel fish
OP Offline
Babel fish
P
Joined: Mar 2014
Posts: 52
hi there,

is there a funtion that can sort an ini file? highest value to lowest?
i have a point system, like everyone else :p
ini looks like this

Code:
[#channel.nick]
seconds=1
[#channel.nick2]
seconds=5


when typing !chatstats the user gets his total time active in chat displayed in chat and how much lines he posted. now i want it to display the rank as well :s
if nick2 uses !chatstats it currently gives out the lines he posted + hours and minutes. and i want it to give out [1] in like the ranking. he is ranked 1 because he is the most active user


+ can i use $remove() to remove all the text after a chr?
like $remove(%var,.*)
but that wont work unfortunately frown
i want everything after the . removed.
got this one solved with $int() smile


thanks in advance!

Last edited by patrickplays; 09/05/14 12:38 AM.
Joined: Apr 2014
Posts: 191
B
Vogon poet
Offline
Vogon poet
B
Joined: Apr 2014
Posts: 191


Link Copied to Clipboard