iNFERiON Voice
Joined: 13 Nov 2004 Posts: 7
|
Posted: Sun Nov 06, 2005 9:19 pm Post subject: wrong # args - confused |
|
|
Hello all,
I am writing a TCL script for my WoW guild channel that would enable users to add their WoW characters to a database. I have this as script to add characters:
| Code: | proc cu_addchar {nick host handle chan text} {
set charname [lindex $text 0]
set race [lindex $text 1]
set class [lindex $text 2]
set level [lindex $text 3]
putmsg $nick "Adding \002$charname\002 (Level $level $race $class) to the database."
set wowdb [open wowchars.db a+]
puts $wowdb $charname $race $class $level
close $wowdb
putmsg $cuchan "$nick has added a new character, $charname (Level $level $race $class) to the database."
} |
when I use the bind to trigger this process, the bot's console spits out this message:
| Code: | | [02:16] Tcl error [cu_addchar]: wrong # args: should be "cu_addchar nick host handle chan text" |
Which I do not understand, I have all those args in the proc header already
| Code: | | proc cu_addchar {nick host handle chan text} { |
It's all there right ? What am I doing wrong here ? |
|