Hey blessing, i saw your answer in this thread sadly too late smirk perhaps you can change your script a little that it can read my .ini too

Quote:
I have a ".ini" file for my coins, it save the "money" like this:

Code:
[Nickname1]
Money=100

[Nickname2]
Money=299

[Nickname3]
Money=500

[Nickname4]
Money=387

[Nickname5]
Money=120



I changed the script as far as i could do! ^^

Code:
on *:TEXT:!top5:#:{
 top5 #
}
alias -l top5 {
  window -h @. | var %i 1
  while $gettok($remove($read(Casino.ini,w,$+(*,$1,*),%i),[,]),2,46) {
    var %n $v1, %p $gettok($read(Casino.ini,$calc($readn + 1)),2,61)
    aline @. %n %p
    var %i $calc($readn + 1)
  }
  filter -cetuww 2 32 @. @.
  var %i 1 | while %i <= 5 {
    var %list $addtok(%list,$line(@.,%i),44)
    inc %i
  }
  msg $1 Top 5: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
  window -c @.
}


But i dont know what i have to change exactly to read my points! smile

Would be awesome.

Last edited by Kawalli; 30/04/14 09:07 AM.