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.

utimer prob

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

utimer prob

Post by ReaLz »

proc takeb_req {bot com args} {
utimer 2 putserv NICK Katsika
}

I have put this in a tcl script and it shows that error:
Tcl error [takeb_req]: wrong # args: should be "utimer seconds command"

What's wrong?!
«A fantastic spaghetti is a spaghetti that does not exist»
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As stated, you have passed the timer command, the wrong number of arguments.

You should pass the command, as a single list of arguemnts, rather than 3 seperate elements.

Try using

Code: Select all

utimer 2 [list putserv "NICK Katsika"]
Locked