Whoa! You almost got me to rewrite the whole code, but it's not my job, my job is to teach you to use /filter, while loops, $readini, maybe hashtables...
So please, look @ the help file for those...
maybe i shouldn't paste this, as you should definately use hashtables....
checktoptime {
set %scr 1
var %i = 1
while ( %i <= 10 ) {
set $+(%,top,%i,time) 0
set $+(%,top,%i,timewinr) *
inc %i
}
...