<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/10774" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-11-07T07:37:59-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/10774</id>

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-07T07:37:59-04:00</updated>

		<published>2005-11-07T07:37:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57157#p57157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57157#p57157"/>
		<title type="html"><![CDATA[wrong # args - confused]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57157#p57157"><![CDATA[
<strong class="text-strong">.set errorInfo</strong> tells you exactly where the error occurs. I assume that the proc is being called with not enough attributes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 07, 2005 7:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iNFERiON]]></name></author>
		<updated>2005-11-06T21:19:14-04:00</updated>

		<published>2005-11-06T21:19:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57141#p57141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57141#p57141"/>
		<title type="html"><![CDATA[wrong # args - confused]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57141#p57141"><![CDATA[
Hello all,<br><br>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:<br><div class="codebox"><p>Code: </p><pre><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 $levelclose $wowdbputmsg $cuchan "$nick has added a new character, $charname (Level $level $race $class) to the database."}</code></pre></div>when I use the bind to trigger this process, the bot's console spits out this message:<br><div class="codebox"><p>Code: </p><pre><code>[02:16] Tcl error [cu_addchar]: wrong # args: should be "cu_addchar nick host handle chan text"</code></pre></div>Which I do not understand, I have all those args in the proc header already  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> <br><div class="codebox"><p>Code: </p><pre><code>proc cu_addchar {nick host handle chan text} {</code></pre></div>It's all there right ? What am I doing wrong here ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5656">iNFERiON</a> — Sun Nov 06, 2005 9:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
