hey, im getting the error message:
'wrong # args: should be "proc name args body" while executing
"proc get_score { args } {
global nick wscorefile chan allscores
set allscores ""
set fs [open $wscorefile r]"'
when i try to run my bot. The part of script that isn't working is:
#Recored score
proc get_score { args } {
global nick wscorefile chan allscores
set allscores ""
set fs [open $wscorefile r]
#load its contents into a list
while {![eof $fs]} {
set grabscore [split [gets $fs] |]
set sortscore [lrange $grabscore 0 1]
lappend allscores [split $sortscore]
}
set allscores [lsort -real -index 1 $allscores]
lreverse
#Close socre file
close $fs
}
Anyone know how to go about solving this?