| View previous topic :: View next topic |
| Author |
Message |
bsdkid Voice
Joined: 02 Nov 2005 Posts: 16
|
Posted: Sat Dec 31, 2005 12:13 am Post subject: |
|
|
I think something is wrong with this, after i reload the score array when the bot restart it screwed up.
| Code: |
set f [open score.txt]
foreach line [split [read $f]] {
foreach {n s} [split $line] {
set score($n) [list $n $s]
}
}
close $f
|
|
|
| Back to top |
|
 |
bsdkid Voice
Joined: 02 Nov 2005 Posts: 16
|
Posted: Sat Dec 31, 2005 12:16 am Post subject: |
|
|
Currently: expected integer but got ""
Currently: while executing
Currently: "incr sco $pointvalue"
Currently: invoked from within
Currently: "if [info exists score($lnick)] {
Currently: set sco [lindex $score($lnick) 1]
Currently: lset score($lnick) 1 [incr sco $pointvalue]
Currently: } {
Currently: set score($lnick)..." |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Dec 31, 2005 12:16 am Post subject: |
|
|
well, you have 2 options: either understand completely what you've created so far using my code - and then help yourself, or paste your entire script and hope someone will fix it for you (I won't do that, I'm not in the mood for debugging right now) _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
|