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

	<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>2004-02-22T15:36:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-22T15:36:37-04:00</updated>

		<published>2004-02-22T15:36:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33859#p33859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33859#p33859"/>
		<title type="html"><![CDATA[Need help with my on_off script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33859#p33859"><![CDATA[
Welll... this is a lesson in why it's important to properly format your code. You don't have a problem with the args, you really have a problem with matching braces. You also have one more problem, in one of your if statements you used a ( instead of {, which causes another brace mismatch.<br><br>Anyway, try formatting your code in a nice easy to read way and I'm sure you will see where the problems are!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Feb 22, 2004 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blade2]]></name></author>
		<updated>2004-02-22T08:52:37-04:00</updated>

		<published>2004-02-22T08:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33847#p33847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33847#p33847"/>
		<title type="html"><![CDATA[Need help with my on_off script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33847#p33847"><![CDATA[
I have a problem with my script:<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- .trigger statusset blub(active) "1"set blub(mytime) "60"proc status {nick host hand channel rest} {global blubset mytime [lindex $rest 1]set wazup [lindex $rest 0]if {[matchattr $hand T|T $chan]} { switch -- [string tolower $wazup] { ""    { putserv "NOTICE $nick :\002Syntax:\002 .trigger &lt;on/off/time/show&gt; \[time\]" } "off" { set blub(active) 0 } "on"  { set blub(active) 1 } "time" { set blub(mytime) $mytime } "show" { putserv "privmsg $channel :Trigger Infos: (Active: $blub(active)) (Timer: $blub(mytime) min)" } } if {$blub(active) == 0} { putserv "privmsg $channel :Trigger if currentlly off" } else { putserv "privmsg $channel :Trigger is currentlly on" } if ($mytime == ""} { putserv "notice $nick :Bitte gib einen Timer an!"  } else { putserv "notice $nick :Timer wurde auf $mytime gesetzt." }} else { putserv "notice $nick :\002Access denied\002" }}</code></pre></div>And as error I get that:<br><blockquote class="uncited"><div>wrong # args: should be "proc name args body"<br>    while executing<br>"proc status {nick host hand channel rest} {<br>global blub<br>set mytime [lindex $rest 1]<br>set wazup [lindex $rest 0]<br>if {[matchattr $hand T|T $chan]} {<br> swi..."</div></blockquote>whats wrong ? which args are wrong ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4535">Blade2</a> — Sun Feb 22, 2004 8:52 am</p><hr />
]]></content>
	</entry>
	</feed>
