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

	<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-05-06T12:31:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-06T12:31:32-04:00</updated>

		<published>2005-05-06T12:31:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49117#p49117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49117#p49117"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49117#p49117"><![CDATA[
It's pretty obvious, "missing close-brace"<div class="codebox"><p>Code: </p><pre><code>proc fine:voto {} { global sillaba scarabeo chan     set chan "#quix"     putserv "PRIVMSG $chan :Fine Votazioni!"     set max $uno     if {$sillaba &gt; $max } {set max $sillaba}     if {$scarabeo &gt; $max} {set max $scarabeo}     if {$scarabeoplus &gt; $max} {set max $scarabeoplus}     if {$max == $sillaba} {     putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SILLABA\002 Voti: $sillaba"     } elseif {$max == $uno} {     putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002UNO\002 Voti: $uno"     } elseif {$max == $scarabeoplus} {     putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SCARABEO PLUS\002 Voti: $scarabeoplus"     } elseif {$max == $scarabeo} {     putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SCARABEO\002 Voti: $scarabeo"     return 0     }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 06, 2005 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[djcoxe]]></name></author>
		<updated>2005-05-06T12:15:56-04:00</updated>

		<published>2005-05-06T12:15:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49116#p49116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49116#p49116"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49116#p49116"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc fine:voto {} {global sillaba scarabeo chan    set chan "#quix"    putserv "PRIVMSG $chan :Fine Votazioni!"    set max $uno    if {$sillaba &gt; $max } {set max $sillaba}    if {$scarabeo &gt; $max} {set max $scarabeo}    if {$scarabeoplus &gt; $max} {set max $scarabeoplus}    if {$max == $sillaba} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SILLABA\002 Voti: $sillaba"    } elseif {$max == $uno} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002UNO\002 Voti: $uno"    } elseif {$max == $scarabeoplus} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SCARABEO PLUS\002 Voti: $scarabeoplus"    } elseif {$max == $scarabeo} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SCARABEO\002 Voti: $scarabeo"    return 0    }</code></pre></div>I write this but the tcl not start ... read this error:<br><br>[16:12] missing close-brace<br>    while executing<br>"proc fine:voto {}"<br>    (file "scripts/voto.tcl" line 51)<br>    invoked from within<br>"source scripts/voto.tcl"<br>    (file "eggdrop.conf" line 175)<br>[16:12] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6196">djcoxe</a> — Fri May 06, 2005 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-06T11:52:22-04:00</updated>

		<published>2005-05-06T11:52:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49115#p49115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49115#p49115"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49115#p49115"><![CDATA[
you can do something like this:<div class="codebox"><p>Code: </p><pre><code>set max $sillabaif {$uno &gt; $max} { set max $uno}if {$scarabeo &gt; $max} { set max $scarabeo }if {$scarabeoplus &gt; $max} { set max $scarabeoplus }</code></pre></div>Now you have $max as the biggest value. So to output you can use:<div class="codebox"><p>Code: </p><pre><code>if {$max == $sillaba} { # output something} elseif {$max == $uno} { # output something else} elseif {$max == $scarabeo} { # output something else and the list continues...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 06, 2005 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[djcoxe]]></name></author>
		<updated>2005-05-06T11:41:01-04:00</updated>

		<published>2005-05-06T11:41:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49112#p49112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49112#p49112"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49112#p49112"><![CDATA[
1. $sillaba compare with $uno and $scarabeo and $scarabeoplus <br>2. $scarabeo compare with $uno and $sillaba and $scarabeoplus<br>3. $scarabeoplus compare with $uno and $sillaba and $scarabeo<br>3. $uno compare with $sillaba and $scarabeo and $scarabeoplus<br><br>for check the biggest<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6196">djcoxe</a> — Fri May 06, 2005 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-06T11:31:34-04:00</updated>

		<published>2005-05-06T11:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49107#p49107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49107#p49107"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49107#p49107"><![CDATA[
What variable to you want to check, and compared to what ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 06, 2005 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[djcoxe]]></name></author>
		<updated>2005-05-06T11:24:44-04:00</updated>

		<published>2005-05-06T11:24:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49105#p49105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49105#p49105"/>
		<title type="html"><![CDATA[Help ME Please (TCL)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49105#p49105"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set chan "#quix"set sillaba 0set scarabeo 0set uno 0set scarabeoplus 0bind pub - !quix start_votazionebind pub - !votasillaba votosillababind pub - !votascarabeoplus votoscarabeoplusbind pub - !votauno votounobind pub - !votascarabeo votoscarabeoproc start_votazione {nick host hand chan text} {global sillaba scarabeo scarabeoplus uno    set sillaba 0    set scarabeo 0    set uno 0    set scarabeoplus 0    putserv "PRIVMSG $chan :8,2Sono Partite Le Votazioni per il prossimo gioco!!"    putserv "PRIVMSG $chan :8,2Giochi Disponibili :\002SILLABA , UNO , SCARABEO , SCARABEOPLUS"    putserv "PRIVMSG $chan :8,2Potete Votare il Gioco con \0028,4!vota\002 8,2(Es.\002\8,4!votasillaba\0028,2 Tutto attaccato)"    putserv "PRIVMSG $chan :8,2Avete 1 Min !! \002NO CLONI , NO FLOOD\002 Pena BAN!!"    timer 1 fine:voto    return 0    }proc votosillaba {nick host hand chan text} {global sillaba      incr sillaba      putserv "NOTICE $nick :Voto Registrato"    }proc votouno {nick host hand chan text} {global uno      incr uno      putserv "NOTICE $nick :Voto Registrato"    }proc votoscarabeoplus {nick host hand chan text} {global scarabeoplus      incr scarabeoplus      putserv "NOTICE $nick :Voto Registrato"    }proc votascarabeo {nick host hand chan text} {global scarabeo      incr scarabeo      putserv "NOTICE $nick :Voto Registrato"    }proc fine:voto {} {global sillaba scarabeo uno scarabeoplus chan    set chan "#quix"    putserv "PRIVMSG $chan :Fine Votazioni!"    if {????????} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SILLABA\002 Voti: $sillaba "    putserv "NOTICE Quix :sillabaon 200 0000"        } elseif {?????????} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002SCARABEO\002 Voti : $scarabeo"    putserv "NOTICE Quix :sccon 200 0000"    } elseif {?????????} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002UNO\002 Voti : $uno"    } elseif {?????????} {    putserv "PRIVMSG $chan :Il Prossimo Gioco Sarà \002 SCARABEO PLUS\002 Voti : $scarabeoplus"    putserv "NOTICE $chan :scarabeon 200 0000"    return 0   }</code></pre></div>I try to write a script for vote a various games in one chan ...<br>When the people vote the game ... the biggest variable win and start the game ... but i don't understand ...<br>the problem is in the "fine:voto" ... {?????} for define the biggest variable...<br>Please Help Me!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6196">djcoxe</a> — Fri May 06, 2005 11:24 am</p><hr />
]]></content>
	</entry>
	</feed>
