Help With Stats Script Plz - 11/10/06 01:05 PM
trying to do a stats script ...
i need it to check an unowins.ini file that looks like this ...
[jackie_5012]
wins=8
[gwyidr]
wins=1
[WarlockWeary]
wins=8
[|Raven|]
wins=10
I want it to check the "wins" and display in order the top 10
best "wins"
HELP!
alias xxx {
var %next = 0
/msg $chan 4[ 7UNO Stats ... 4]
var %x = 1, %total = $lines(unowins.ini)
while (%x <= %total) {
var %next = $calc( %next + 1 )
var %1 = $read(unowins.ini,%x)
var %2 = $remove(%1,[,])
var %3 = $readini(unowins.ini,%2,wins)
var %4 = $remove(%3,w)
if (( %next == 1 ) || ( %next == 3 ) || ( %next == 5 ) || ( %next == 7 ) || ( %next == 9 ) || ( %next == 11 )) { /msg $chan 04[ 11Name: %1 Wins: %4 !4 ] }
inc %x
}
}
Dont work right ... help plz ?
i need it to check an unowins.ini file that looks like this ...
[jackie_5012]
wins=8
[gwyidr]
wins=1
[WarlockWeary]
wins=8
[|Raven|]
wins=10
I want it to check the "wins" and display in order the top 10
best "wins"
HELP!
alias xxx {
var %next = 0
/msg $chan 4[ 7UNO Stats ... 4]
var %x = 1, %total = $lines(unowins.ini)
while (%x <= %total) {
var %next = $calc( %next + 1 )
var %1 = $read(unowins.ini,%x)
var %2 = $remove(%1,[,])
var %3 = $readini(unowins.ini,%2,wins)
var %4 = $remove(%3,w)
if (( %next == 1 ) || ( %next == 3 ) || ( %next == 5 ) || ( %next == 7 ) || ( %next == 9 ) || ( %next == 11 )) { /msg $chan 04[ 11Name: %1 Wins: %4 !4 ] }
inc %x
}
}
Dont work right ... help plz ?