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.

timer variable

Old posts that have not been replied to for several years.
Locked
m
minotaur
Voice
Posts: 19
Joined: Sun Jul 06, 2003 8:36 pm

timer variable

Post by minotaur »

if have this script


proc test { arg } {
putlog "channel $arg"
timer 1 test2 $arg
}

prco test2 { arg } {
putlog "channel $arg checked twice"
}

hmm now it doesnt work he says me error
Tcl error in script for 'timer4':
can't read "66ms": no such variable

whats wrong?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

change

Code: Select all

timer 1 test2 $arg 
to

Code: Select all

timer 1 [list test2 $arg] 
Elen sila lúmenn' omentielvo
R
Relisysuk

Post by Relisysuk »

i keep getting a error come up at various times
Tcl error in script for 'timer139':
'timer139' bit always change's but i dont know whats up can any1 help???
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Have you folowed Papillon's sugestion then .rehashed? Or.. umm.. .restart even? as far as I recall the utimers are not *erased* upon a rehash so I guess the .restart should erase them or something.
Once the game is over, the king and the pawn go back in the same box.
R
Relisysuk

Post by Relisysuk »

my problem is just in general nothing to do with any perticulay script :S
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Huh? What you mean? Please do be more specific, I'm clueless on what you've said. :)
Once the game is over, the king and the pawn go back in the same box.
Locked