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

	<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-06-22T09:04:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-06-22T09:04:57-04:00</updated>

		<published>2003-06-22T09:04:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22377#p22377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22377#p22377"/>
		<title type="html"><![CDATA[Starting a Value to count.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22377#p22377"><![CDATA[
I think you should define testupdate as global variable in status:evnt:connect. Try this:<br><div class="codebox"><p>Code: </p><pre><code>proc status:evnt:connect {filter} {global testuptimeif {![info exits $testuptime]} {   set testuptime [clock clicks -milliseconds]   } putlog "$test" } proc status:evnt:disconnect {filter} { global testuptime set wtest [expr [expr [clock clicks -milliseconds]-$testuptime]/1000.00] putlog "$wtest"catch {unset  testuptime}} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Sun Jun 22, 2003 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2003-06-21T10:03:00-04:00</updated>

		<published>2003-06-21T10:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22316#p22316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22316#p22316"/>
		<title type="html"><![CDATA[Starting a Value to count.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22316#p22316"><![CDATA[
Hi all again.. Lost all my data, so i have started my TCL's again! <br><br>Got a little problem with timers. Try to set a value to count in milliseconds until stop and changed into real time.<br><br>But everytime it goes and exec it.. I get a error  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br><div class="codebox"><p>Code: </p><pre><code>proc status:evnt:connect {filter} { if {![info exits $testuptime]} {   set testuptime [clock clicks -milliseconds]  } putlog "$test"}proc status:evnt:disconnect {filter} { global testuptime set wtest [expr [expr [clock clicks -milliseconds]-$testuptime]/1000.00] putlog "$wtest"}</code></pre></div>Error:<blockquote class="uncited"><div>Tcl error [status:evnt:connect]: can't read "testuptime": no such variable</div></blockquote>I bet you it is something real simple... But i cant work it out. If there is any other way that is more user friendly or work better i would love to know. Thanx for anyhelp<br><br>----------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sat Jun 21, 2003 10:03 am</p><hr />
]]></content>
	</entry>
	</feed>
