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

	<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-07-06T10:15:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-06T10:15:52-04:00</updated>

		<published>2005-07-06T10:15:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51866#p51866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51866#p51866"/>
		<title type="html"><![CDATA[problem with arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51866#p51866"><![CDATA[
<blockquote class="uncited"><div>Should i make this array <strong class="text-strong">ex</strong> global in both <strong class="text-strong">test</strong> and <strong class="text-strong">example</strong> proc's ? I think it works <div class="codebox"><p>Code: </p><pre><code>proc test {nick uhost handle channel} {  global ex  set ex($nick) 1  return 0} </code></pre></div></div></blockquote>Yes, if you make it global in both procs then you can manipulate this array as you wish in these procs, and your code will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 06, 2005 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-07-06T09:01:20-04:00</updated>

		<published>2005-07-06T09:01:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51857#p51857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51857#p51857"/>
		<title type="html"><![CDATA[problem with arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51857#p51857"><![CDATA[
<blockquote class="uncited"><div>Should i make this array <strong class="text-strong">ex</strong> global in both <strong class="text-strong">test</strong> and <strong class="text-strong">example</strong> proc's ? I think it works <div class="codebox"><p>Code: </p><pre><code>proc test {nick uhost handle channel} {  global ex  set ex($nick) 1  return 0} </code></pre></div></div></blockquote>No you dont have too set it global in the first proc because too use the command "set" so he doesnt reqornis it in de "global" cmd<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Wed Jul 06, 2005 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-07-06T08:58:53-04:00</updated>

		<published>2005-07-06T08:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51856#p51856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51856#p51856"/>
		<title type="html"><![CDATA[Re: problem with arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51856#p51856"><![CDATA[
<blockquote class="uncited"><div>If i set an array <strong class="text-strong">ex($nick)</strong> in a <strong class="text-strong">proc test</strong>. How do i  get <strong class="text-strong">$ex($nick)</strong> in a different proc?<br><div class="codebox"><p>Code: </p><pre><code>bind join -|- * textbind pubm -|- * exampleproc test {nick uhost handle channel} {  set ex($nick) 1  return 0}proc example {nick uhost handle channel text} {  global ex  putlog "ex($nick) is $ex($nick)"  return 0}set array ex {}</code></pre></div><blockquote class="uncited"><div>Tcl error [example]: can't read "ex(nandu)": no such element in array</div></blockquote></div></blockquote>the proc name doest match "bind join -|- * text"  "proc test {nick uhost handle channel} {"<br><br>maybe this help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Wed Jul 06, 2005 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-07-06T07:30:35-04:00</updated>

		<published>2005-07-06T07:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51855#p51855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51855#p51855"/>
		<title type="html"><![CDATA[problem with arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51855#p51855"><![CDATA[
Should i make this array <strong class="text-strong">ex</strong> global in both <strong class="text-strong">test</strong> and <strong class="text-strong">example</strong> proc's ? I think it works <div class="codebox"><p>Code: </p><pre><code>proc test {nick uhost handle channel} {  global ex  set ex($nick) 1  return 0} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Wed Jul 06, 2005 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-07-06T07:22:00-04:00</updated>

		<published>2005-07-06T07:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51854#p51854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51854#p51854"/>
		<title type="html"><![CDATA[problem with arrays]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51854#p51854"><![CDATA[
If i set an array <strong class="text-strong">ex($nick)</strong> in a <strong class="text-strong">proc test</strong>. How do i  get <strong class="text-strong">$ex($nick)</strong> in a different proc?<br><div class="codebox"><p>Code: </p><pre><code>bind join -|- * textbind pubm -|- * exampleproc test {nick uhost handle channel} {  set ex($nick) 1  return 0}proc example {nick uhost handle channel text} {  global ex  putlog "ex($nick) is $ex($nick)"  return 0}set array ex {}</code></pre></div><blockquote class="uncited"><div>Tcl error [example]: can't read "ex(nandu)": no such element in array</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Wed Jul 06, 2005 7:22 am</p><hr />
]]></content>
	</entry>
	</feed>
