This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
COBRa
Halfop
Posts: 49 Joined: Fri Jan 04, 2013 8:23 am
Post
by COBRa » Fri Apr 04, 2014 4:25 pm
hi im getting tht error in my tcl i think its this proc thts causing it any help would be appreciated
Code: Select all
proc putnow {a {options "0"}} {
append a "\n"
putdccraw 0 [string length $a] $a
}
rename putserv ""
rename putquick ""
rename puthelp ""
proc putserv {text {options "0"}} {
putnow $text
}
proc putquick {text {options "0"}} {
putnow $text
}
proc puthelp {text {options "0"}} {
putnow $text
}
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Fri Apr 04, 2014 9:28 pm
Just try that code without the putnow proc...
Code: Select all
proc putnow {a {options "0"}} {
append a "\n"
putdccraw 0 [string length $a] $a
}
and run the code looking more like this...
Code: Select all
rename putserv ""
rename putquick ""
rename puthelp ""
proc putserv {text {options "0"}} {
putnow $text
}
proc putquick {text {options "0"}} {
putnow $text
}
proc puthelp {text {options "0"}} {
putnow $text
}
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sat Apr 05, 2014 5:59 pm
I'd suggest removing all that code alltogether...
Those queue-commands do exist for a reason. If you really want to spew out text unthrottled, you should use the putnow command in the first place...
NML_375