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

	<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-11-23T06:22:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-23T06:22:12-04:00</updated>

		<published>2003-11-23T06:22:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30556#p30556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30556#p30556"/>
		<title type="html"><![CDATA[problem with proc and global vars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30556#p30556"><![CDATA[
<blockquote class="uncited"><div>something like this??: <div class="codebox"><p>Code: </p><pre><code>set looptimer 1 if {![info exists {time-msg-loaded}]} {  global time-msg-loaded looptimer  set time-msg-loaded 1  timer $looptimer timer:action } [snip]</code></pre></div></div></blockquote>This is not a proc, no need for the global line in it. Zeled's code looks fine, it should see the $looptimer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Nov 23, 2003 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2003-11-23T04:39:23-04:00</updated>

		<published>2003-11-23T04:39:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30550#p30550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30550#p30550"/>
		<title type="html"><![CDATA[problem with proc and global vars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30550#p30550"><![CDATA[
something like this??:<div class="codebox"><p>Code: </p><pre><code>set looptimer 1if {![info exists {time-msg-loaded}]} { global time-msg-loaded looptimer set time-msg-loaded 1 timer $looptimer timer:action}proc timer:action {chan} { global time-msg-loaded looptimer set time-msg-loaded 0 putserv "PRIVMSG $chan :sometext" timer $looptimer timer:action} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Sun Nov 23, 2003 4:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZeleD]]></name></author>
		<updated>2003-11-21T21:18:18-04:00</updated>

		<published>2003-11-21T21:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30496#p30496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30496#p30496"/>
		<title type="html"><![CDATA[problem with proc and global vars]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30496#p30496"><![CDATA[
This little test with timers give an error:<br><strong class="text-strong"><br>Tcl error in script for 'timer46': <br>can't read "looptimer": no such variable </strong><div class="codebox"><p>Code: </p><pre><code>set trigger "0"set looptimer "1"if {![info exists timer_set]} { set timer_set [timer $looptimer "timer:action"]}proc timer:action {} {  global looptimer putserv "sometxt" timer $looptimer timer:action}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4171">ZeleD</a> — Fri Nov 21, 2003 9:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
