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

	<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>2007-05-06T08:11:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-06T08:11:07-04:00</updated>

		<published>2007-05-06T08:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72562#p72562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72562#p72562"/>
		<title type="html"><![CDATA[SELECT 2 args instead of 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72562#p72562"><![CDATA[
If you want to make sure that the 2 args exist before continuing, use this instead:<div class="codebox"><p>Code: </p><pre><code>if {[scan $arg {%s %s} arg1 arg2]!=2} {return 0}# continue with $arg1 and $arg2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun May 06, 2007 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-05-06T07:23:25-04:00</updated>

		<published>2007-05-06T07:23:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72560#p72560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72560#p72560"/>
		<title type="html"><![CDATA[SELECT 2 args instead of 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72560#p72560"><![CDATA[
Wow, really easy, thank you Sir <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Sun May 06, 2007 7:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-04T13:15:43-04:00</updated>

		<published>2007-05-04T13:15:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72527#p72527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72527#p72527"/>
		<title type="html"><![CDATA[SELECT 2 args instead of 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72527#p72527"><![CDATA[
Ok, so your problem is in getting arg1 and arg2? well if it's a pub bind then all you need is to add<div class="codebox"><p>Code: </p><pre><code>foreach {arg1 arg2} [split $arg] {break}</code></pre></div>after the 'global' line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri May 04, 2007 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-05-04T12:59:36-04:00</updated>

		<published>2007-05-04T12:59:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72526#p72526</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72526#p72526"/>
		<title type="html"><![CDATA[SELECT 2 args instead of 1]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72526#p72526"><![CDATA[
Hello,<br><br>this is my code:<br><div class="codebox"><p>Code: </p><pre><code>proc amxx:db:info {nick host hand chan arg} {global sqlset sql(handle) [mysqlconnect -host $sql(host7) -user $sql(user7) -password $sql(pass7) -db $sql(db7)]set sma(qry) [mysqlsel $sql(handle) "SELECT blafield,blafield2 FROM blatable WHERE bla1 = '$arg1' AND bla2 = '$arg2'" -flatlist]mysqlclose $sql(handle)if {$sma(qry) != ""} {set gelesen(blafield) [lindex $sma(qry) 0]set gelesen(blafield2) [lindex $sma(qry) 1]putserv "PRIVMSG $chan :»» PlayerID: $gelesen(blafield) and $gelesen(blafield2)"}</code></pre></div>I want there to select 2 args. Its like I write this into the channel:<br><br>Psyfire: !get arg1 arg2<br>Bot: Arg1=Test and Arg2=Bla<br><br>What do I have to modify, to search 2 args and output them correctly?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Fri May 04, 2007 12:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
