<?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/3971" />

	<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>2003-03-23T10:53:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Massacre]]></name></author>
		<updated>2003-03-23T10:53:51-04:00</updated>

		<published>2003-03-23T10:53:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18139#p18139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18139#p18139"/>
		<title type="html"><![CDATA[Wrong args error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18139#p18139"><![CDATA[
aha, thank u v much. I only started learning TCL yesterday so I'm not yet familer with all the functions/procs and stuff :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2880">Massacre</a> — Sun Mar 23, 2003 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-23T10:47:22-04:00</updated>

		<published>2003-03-23T10:47:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18138#p18138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18138#p18138"/>
		<title type="html"><![CDATA[Wrong args error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18138#p18138"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>incr count</code></pre></div>This is the simplest approach.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Mar 23, 2003 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-23T09:05:32-04:00</updated>

		<published>2003-03-23T09:05:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18137#p18137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18137#p18137"/>
		<title type="html"><![CDATA[Wrong args error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18137#p18137"><![CDATA[
also<div class="codebox"><p>Code: </p><pre><code>set count $count + 1 </code></pre></div>this does the same thing... and tcl does not work as php... you have to do something like<div class="codebox"><p>Code: </p><pre><code>set count [expr $count + 1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sun Mar 23, 2003 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-23T08:57:51-04:00</updated>

		<published>2003-03-23T08:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18136#p18136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18136#p18136"/>
		<title type="html"><![CDATA[Wrong args error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18136#p18136"><![CDATA[
See the line<div class="codebox"><p>Code: </p><pre><code>set ws_extras $ws_extras [lindex $ws_info $count]</code></pre></div>This is sending 3 seperate arguments to the set command.<br><br>If you are looking to add the information using a space, the enclose it in quotes<br><div class="codebox"><p>Code: </p><pre><code>set ws_extras "$ws_extras [lindex $ws_info $count]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Mar 23, 2003 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Massacre]]></name></author>
		<updated>2003-03-23T06:18:58-04:00</updated>

		<published>2003-03-23T06:18:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18135#p18135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18135#p18135"/>
		<title type="html"><![CDATA[Wrong args error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18135#p18135"><![CDATA[
I'm currently making a small script to remember and repeat information about our next war to other clan members. My problem is I keep getting this error generated in my logs:<br><br>Tcl error [setwarinfo]: wrong # args: should be "set varName ?newValue?"<br><br>but I can't find the part of my proc that's the problem. Can anyone help plz? Below is the bind and proc:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !setwar setwarinfoproc setwarinfo { nick uhost hand chan arg } {global ws_clanglobal ws_mapsglobal ws_playersglobal ws_timeglobal ws_dayglobal ws_extrasif {!([string match -nocase $arg ""])} {set ws_info [split $arg]set count 0while {!([string match -nocase [lindex $ws_info $count] ""])} { if {$count == 0} {set ws_players [lindex $ws_info  $count]} elseif {$count == 1} {set ws_day [lindex $ws_info $count]} elseif {$count == 2} {set ws_clan [lindex $ws_info $count]} elseif {$count == 3} {set ws_time [lindex $ws_info $count]} elseif {$count == 4} {set ws_maps [lindex $ws_info $count]} else {set ws_extras $ws_extras [lindex $ws_info $count]}set count $count + 1}if {$count &lt; 5} {putquick "PRIVMSG $chan :!setwar usage is: !setwar &lt;players&gt; &lt;day&gt; &lt;clan&gt; &lt;time&gt; &lt;maps&gt; &lt;extras (optional)&gt;"} else {putquick "PRIVMSG $chan :War set: $ws_players war $ws_day vs $ws_clan @ $ws_time on $ws_maps \[{$ws_extras}\]: 12\[USAGE\] Use !av, !ma, and !na to set ur status."}} else {putquick "PRIVMSG $chan :!setwar usage is: !setwar &lt;players&gt; &lt;day&gt; &lt;clan&gt; &lt;time&gt; &lt;maps&gt; &lt;extras (optional)&gt;"}}</code></pre></div>I'd be very greatful for any help as I have tried many things including putting checkpoints throughout the proc but as non of them were called I'm assuming the error occurs when the tcl parser, if u like, does its pre-execution checks. (The proc did work before I put the while loop in).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2880">Massacre</a> — Sun Mar 23, 2003 6:18 am</p><hr />
]]></content>
	</entry>
	</feed>
