| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Sat Jun 02, 2007 1:41 am Post subject: Help modify script |
|
|
Can anyone help me add this:
| Code: | | foreach t [utimers] { if [string match *Madlib* [lindex $t 1]] { killutimer [lindex $t end] } } |
In to this line:
| Code: | | if {$Madlib(extended) >= $Madlib(extend)} { putserv "privmsg $c :Not enough players in this round...minimum of 3 players required...ending game.." ; set Madlibforthisroundflag 1 ; set nextMadlib 1 } } |
I try this but it crahes
| Code: | | if {$Madlib(extended) >= $Madlib(extend)} { putserv "privmsg $c :Not enough players in this round...minimum of 3 players required..ending game.." ; foreach t [utimers] { if [string match *Madlib* [lindex $t 1]] { killutimer [lindex $t end] } } |
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Jun 02, 2007 9:53 am Post subject: |
|
|
Try splitting it up on multiple lines, like this.
| Code: | if {$Madlib(extended) >= $Madlib(extend)} {
putserv "privmsg $c :Not enough players in this round...minimum of 3 players required..ending game.."
foreach t [utimers] {
if [string match *Madlib* [lindex $t 1]] {
killutimer [lindex $t end]
}
} | Now it's quite easy to see that you're lacking one } in the end. Add it, and your code should be fine. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|