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

	<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-06-27T17:09:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T17:09:14-04:00</updated>

		<published>2005-06-27T17:09:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51440#p51440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51440#p51440"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51440#p51440"><![CDATA[
now, this is a big error, the script does not work as such:<br><br>When i set $cup(cup,$chan) off<br>and type .start 5on5 8 testing<br>the bot replys, Error: a cup is alreadt running, blah<br><br>But, the cup is not running, and $cup(cup,$chan) is set to off, please can you check the script, it will be a big help to me as im trying to get this finished asap for my channel.<br><br>Ths script: <div class="codebox"><p>Code: </p><pre><code>proc start:cup {nick host handle chan text} { global cup set cup(slots,$chan) [lindex [split $text] 2] set cup(prize,$chan) [join [lrange [split $text] 3 end]] set cup(type,$chan) [lindex [split $text] 1] set cup(admin,$chan) $nick set cup(map,$chan) de_dust2 if {![matchattr $handle o|o $chan] &amp;&amp; ![matchattr $handle C|C $chan]} { putserv "PRIVMSG $chan :Error: you do not have access to this command $nick." } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == on)} { putserv "PRIVMSG $chan :Error: a cup is already running, use ./!/?stop to stop the cup." } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == off)} { if {($cup(type,$chan) != "1on1") &amp;&amp; ($cup(type,$chan) != "2on2") &amp;&amp; ($cup(type,$chan) != "5on5") &amp;&amp; ($cup(type,$chan) == "")} { putserv "PRIVMSG $chan :Error: No cup type was given, or invalid entery, please use ./!/?start 1on1/2on2/5on5 4/8/16/32 prize." } elseif {($cup(slots,$chan) == "")} { putserv "PRIVMSG $chan :Error: no slots was given, please use ./!/?start slots prize." } elseif {($cup(prize,$chan) == "")} { putserv "PRIVMSG $chan :Error: no prize was given, please use ./!/?start slots prize." } elseif {($cup(slots,$chan) != "") &amp;&amp; ($cup(prize,$chan) != "") &amp;&amp; ($cup(type,$chan) != "")} { putserv "PRIVMSG $chan :The $chan $cup(type,$chan) cup has begun with $cup(slots,$chan) slots." putserv "PRIVMSG $chan :Your admin is: $cup(admin,$chan) and the map is $cup(map,$chan)."set cup(cup,$chan) on  } } }</code></pre></div>Thanks in advance!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T16:16:43-04:00</updated>

		<published>2005-06-27T16:16:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51439#p51439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51439#p51439"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51439#p51439"><![CDATA[
arrh, Hmm, i fixed that earlier, i think i must have pasted the old scropt, oh well, thanks!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-27T16:09:50-04:00</updated>

		<published>2005-06-27T16:09:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51438#p51438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51438#p51438"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51438#p51438"><![CDATA[
check your damn parenthesis and stop asking for help on [censored] that you can damn well fix on your own if you just look at your own [censored] code.<br><div class="codebox"><p>Code: </p><pre><code>} elseif {($cup(prize,$chan) == ""} { </code></pre></div>^^ spot the mistake sir_fz told you about earlier.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Mon Jun 27, 2005 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T14:33:47-04:00</updated>

		<published>2005-06-27T14:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51434#p51434</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51434#p51434"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51434#p51434"><![CDATA[
well, i got the start system as you can see, just fixing the errors, i got the stop, prize, setprize, hltv sethltv, etc etc. Making a !add system aswell, and a !remove then some more stuff. Coming on good. Someone please help with that error shown above!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fajja]]></name></author>
		<updated>2005-06-27T14:10:53-04:00</updated>

		<published>2005-06-27T14:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51433#p51433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51433#p51433"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51433#p51433"><![CDATA[
glad to hear ur getting there! how large is the total script so far?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6205">fajja</a> — Mon Jun 27, 2005 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T14:10:53-04:00</updated>

		<published>2005-06-27T14:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51432#p51432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51432#p51432"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51432#p51432"><![CDATA[
omg, these errors are flying at me, &lt;[Cup-Bot]&gt; [19:09] Tcl error [start:cup]: syntax error in expression "($cup(prize,$chan) == """: looking for close parenthesis<br><br>please help!! <br>im nuub at tcl now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T14:05:28-04:00</updated>

		<published>2005-06-27T14:05:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51431#p51431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51431#p51431"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51431#p51431"><![CDATA[
arrh, ok, also the 5on5 ;p, ok, thanks Sir_Fz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-27T13:58:54-04:00</updated>

		<published>2005-06-27T13:58:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51430#p51430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51430#p51430"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51430#p51430"><![CDATA[
1on1 and 2on2 should be between quotes ""<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 27, 2005 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T13:55:11-04:00</updated>

		<published>2005-06-27T13:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51429#p51429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51429#p51429"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51429#p51429"><![CDATA[
ok, this is the new code, the brackets are fixed now. <br><div class="codebox"><p>Code: </p><pre><code>proc start:cup {nick host hand chan text} { global cup set cup(slots,$chan) [lindex [split $text] 2] set cup(prize,$chan) [join [lrange [split $text] 3 end]] set cup(type,$chan) [lindex [split $text] 1] set cup(admin,$chan) $nick set cup(map,$chan) de_dust2 if {![matchattr $handle o|o $chan] &amp;&amp; ![matchattr $handle C|C $chan]} { putserv "PRIVMSG $chan :Error: you do not have access to this command $nick." } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == on)} { putserv "PRIVMSG $chan :Error: a cup is already running, use ./!/?stop to stop the cup." } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == off)} { set cup(cup,$chan) on if {($cup(type,$chan) != 1on1) &amp;&amp; ($cup(type,$chan) != 2on2) &amp;&amp; ($cup(type,$chan) != 5on5) &amp;&amp; ($cup(type,$chan) == "")} { putserv "PRIVMSG $chan :Error: No cup type was given, or invalid entery, please use ./!/?start 1on1/2on2/5on5 4/8/16/32 prize." } elseif {($cup(slots,$chan) == "")} { putserv "PRIVMSG $chan :Error: no slots was given, please use ./!/?start slots prize." } elseif {($cup(prize,$chan) == ""} { putserv "PRIVMSG $chan :Error: no prize was given, please use ./!/?start slots prize." } elseif {($cup(slots,$chan) != "") &amp;&amp; ($cup(prize,$chan) != "") &amp;&amp; ($cup(type,$chan) != "")} { putserv "PRIVMSG $chan :The $chan $cup(type,$chan) cup has begun with $cup(slots,$chan) slots." putserv "PRIVMSG $chan :Your admin is: $cup(admin,$chan) and the map is $cup(map,$chan)." } } }</code></pre></div>but, another error,<br><br>&lt;[Cup-Bot]&gt; [18:51] Tcl error [start:cup]: syntax error in expression "($cup(type,$chan) != 1on1) &amp;&amp; ($cup(type,$chan) != 2on2) &amp;&amp; ...": looking for close parenthesis<br><br>Dont know what the heck that means, please help, thanks in advance!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T13:16:08-04:00</updated>

		<published>2005-06-27T13:16:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51428#p51428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51428#p51428"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51428#p51428"><![CDATA[
arrh, stupid me, thanks Sir_Fz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-27T12:58:06-04:00</updated>

		<published>2005-06-27T12:58:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51427#p51427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51427#p51427"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51427#p51427"><![CDATA[
The same problem over and over... Look at your open and close braces, do you see them as balanced ? when you open a brace ('{') you close it with a another brace ('}') while ')' closes a '('.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jun 27, 2005 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fajja]]></name></author>
		<updated>2005-06-27T12:57:04-04:00</updated>

		<published>2005-06-27T12:57:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51426#p51426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51426#p51426"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51426#p51426"><![CDATA[
try putting the elseif statement on a new line after the close braces...<br>dunno much about tcl myself, but in other languages it can screw things up <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>hope this helps..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6205">fajja</a> — Mon Jun 27, 2005 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-27T12:35:50-04:00</updated>

		<published>2005-06-27T12:35:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51424#p51424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51424#p51424"/>
		<title type="html"><![CDATA[cupbot error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51424#p51424"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc start:cup {nick host hand chan text} {  global cup  set cup(slots,$chan) [lindex [split $text] 2]  set cup(prize,$chan) [join [lrange [split $text] 3 end]]   set cup(type,$chan) [lindex [split $text] 1]   set cup(admin,$chan) $nick  set cup(map,$chan) de_dust2  if {![matchattr $handle o|o $chan] &amp;&amp; ![matchattr $handle C|C $chan]} {    putserv "PRIVMSG $chan :Error: you do not have access to this command $nick."    } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == on)} {    putserv "PRIVMSG $chan :Error: a cup is already running, use ./!/?stop to stop the cup."    } elseif {[matchattr $handle o|o $chan] || [matchattr $handle C|C $chan] &amp;&amp; ($cup(cup,$chan) == off)} {    set cup(cup,$chan) on    if {($cup(type,$chan) != 1on1) &amp;&amp; ($cup(type,$chan) != 2on2) &amp;&amp; ($cup(type,$chan) != 5on5)} &amp;&amp; ($cup(type,$chan) == "")  {      putserv "PRIVMSG $chan :Error: No cup type was given, or invalid entery, please use ./!/?start 1on1/2on2/5on5 4/8/16/32 prize."      } elseif {($cup(slots,$chan) == "")} {      putserv "PRIVMSG $chan :Error: no slots was given, please use ./!/?start slots prize."      } elseif {($cup(prize,$chan) == ""} {      putserv "PRIVMSG $chan :Error: no prize was given, please use ./!/?start slots prize."      } elseif {$cup(slots,$chan) != "") &amp;&amp; ($cup(prize,$chan) != "")} &amp;&amp; ($cup(type,$chan) != "")  {      putserv "PRIVMSG $chan :The $chan $cup(type,$chan) cup has begun with $cup(slots,$chan) slots."      putserv "PRIVMSG $chan :Your admin is: $cup(admin,$chan) and the map is $cup(map,$chan)."    }  }}</code></pre></div>&lt;[Cup-Bot]&gt; [16:47] Tcl error [start:cup]: extra characters after close-quote<br><br>I cant find the error in this script, i have tryed fixing it, it still dont work. Maybe im not looking hard enough ;p please help, Thanks in advance!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 27, 2005 12:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
