<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Бесконечный код | sa:mp]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10571&amp;type=atom" />
	<updated>2015-04-11T19:13:19Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10571</id>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93278#p93278" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
!1::
FileDelete, %A_MyDocuments%%path%suspect.txt
sleep 50
Loop
{
Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt
{
    IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n
}
Loop, read, %A_MyDocuments%%path%suspect.txt
{
    RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)
    RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)
}
}
sendinput {f6}/answ %suspectid% Здравствуйте, %suspectname% , решение вашей проблемы: {escape}
return
</code></pre></div><p>Попробуй так , должно заработать , но правила форума соблюдай.</p>]]></content>
			<author>
				<name><![CDATA[exobangs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32958</uri>
			</author>
			<updated>2015-04-11T19:13:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93278#p93278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93244#p93244" />
			<content type="html"><![CDATA[<p>Цитировать предыдущий пост не <a href="http://forum.script-coding.com/viewtopic.php?id=9590">нужно</a>. Предложения заканчиваются точкой. Если в посте упоминается игра, пост создаётся в этой ветке. За постоянные нарушения правил полагается бан.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-11T13:14:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93244#p93244</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93243#p93243" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p><span style="color: green"><strong>Roma_Cuffor</strong>, темы по играм только в этой ветке.</span></p></blockquote></div><p> Но я там задал вопрос не на тему игры, там не важна игра, мне нужно разобраться с скриптом , почему он бесконечен</p>]]></content>
			<author>
				<name><![CDATA[Roma_Cuffor]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32990</uri>
			</author>
			<updated>2015-04-11T13:09:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93243#p93243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93242#p93242" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Roma_Cuffor</strong>, темы по играм только в этой ветке.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-11T13:08:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93242#p93242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93218#p93218" />
			<content type="html"><![CDATA[<p>Если пост оформлен неправильно, правила форума помогать не рекомендуют. Что касается лично меня, я совсем в играх ничего не понимаю, так что ждите более компетентных помощников.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-10T15:45:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93218#p93218</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93217#p93217" />
			<content type="html"><![CDATA[<p>Неужели только из-за неправильном оформлении кода вы не можете помочь?</p>]]></content>
			<author>
				<name><![CDATA[Roma_Cuffor]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32990</uri>
			</author>
			<updated>2015-04-10T15:24:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93217#p93217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93216#p93216" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#IfWinActive GTA:SA:MP
SLES := 0
suspectid := 0
suspectname := &quot;Подозреваемый&quot;
suspectid1 := 0
suspectname1 := &quot;Подозреваемый&quot;
path := &quot;\GTA San Andreas User Files\SAMP\&quot;
F3::
{
SLES := 1
suspectid := 0
suspectname := &quot;Подозреваемый&quot;
suspectid1 := 0
suspectname1 := &quot;Подозреваемый&quot;
sleep 1000
}
Return


!1::
{
FileDelete, %A_MyDocuments%%path%suspect.txt
sleep 50
Loop
{
Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt
{
    IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n
}
Loop, read, %A_MyDocuments%%path%suspect.txt
{
    RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)
    RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)
}
sendinput {f6}/answ %suspectid% Здравствуйте, %suspectname% , решение вашей проблемы: {escape}
}
return
!2::
{
FileDelete, %A_MyDocuments%%path%suspect.txt
        Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt
        {
            IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n
        }
        Loop, read, %A_MyDocuments%%path%suspect.txt
        {
            RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)
            RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)
        }
}
return
!3::
{
FileDelete, %A_MyDocuments%%path%suspect.txt
        Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt
        {
            IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n
        }
        Loop, read, %A_MyDocuments%%path%suspect.txt
        {
            RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)
            RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)
        }
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Roma_Cuffor]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32990</uri>
			</author>
			<updated>2015-04-10T15:19:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93216#p93216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93215#p93215" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Roma_Cuffor</strong>, теперь вам <a href="http://forum.script-coding.com/viewtopic.php?id=9590">сюда</a>. Как человеку, плохо знающему русский, подскажу: обратите особое внимание на оформление кода.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-04-10T15:07:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93215#p93215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Бесконечный код | sa:mp]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=93214#p93214" />
			<content type="html"><![CDATA[<p>На основе кое-какого другого скрипта сделал свой.Суть скрипта в том, что он ищет в чат логе игры последнюю строчку с &quot;Вопрос от Имя_Игрока ID 123&quot; и делает переменную для Имя_Игрока - suspectname , а для его ID - suspectid. Потом выводит мне в игру уже строчку : &quot; /answ ID Здравствуйте, Имя_Игрока , решение вашей проблемы: &quot;.<br />Вроде всё работает нормально, кроме одного - скрипт не останавливается и просто пишет бесконечное количество этой фразы в окно ввода.</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#IfWinActive GTA:SA:MP<br />SLES := 0<br />suspectid := 0<br />suspectname := &quot;Подозреваемый&quot;<br />suspectid1 := 0<br />suspectname1 := &quot;Подозреваемый&quot;<br />path := &quot;\GTA San Andreas User Files\SAMP\&quot;</p><p>F3::<br />{<br />SLES := 1<br />suspectid := 0<br />suspectname := &quot;Подозреваемый&quot;<br />suspectid1 := 0<br />suspectname1 := &quot;Подозреваемый&quot;<br />sleep 1000<br />}<br />Return</p><br /><br /><p>!1::<br />{<br />FileDelete, %A_MyDocuments%%path%suspect.txt<br />sleep 50</p><p>Loop<br />{<br />Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt<br />{<br />&nbsp; &nbsp; IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n<br />}</p><p>Loop, read, %A_MyDocuments%%path%suspect.txt<br />{<br />&nbsp; &nbsp; RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)<br />&nbsp; &nbsp; RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)<br />}<br />sendinput {f6}/answ %suspectid% Здравствуйте, %suspectname% , решение вашей проблемы: {escape}<br />}<br />return</p><p>!2::<br />{<br />FileDelete, %A_MyDocuments%%path%suspect.txt</p><p>		Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt<br />		{<br />&nbsp; &nbsp; 		IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n<br />		}</p><p>		Loop, read, %A_MyDocuments%%path%suspect.txt<br />		{<br />&nbsp; &nbsp; 		RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)<br />&nbsp; &nbsp; 		RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)<br />		}<br />}<br />return</p><p>!3::<br />{<br />FileDelete, %A_MyDocuments%%path%suspect.txt</p><p>		Loop, read, %A_MyDocuments%%path%chatlog.txt, %A_MyDocuments%%path%suspect.txt<br />		{<br />&nbsp; &nbsp; 		IfInString, A_LoopReadLine, ] Ник{ffffff} , FileAppend, %A_LoopReadLine%`n<br />		}</p><p>		Loop, read, %A_MyDocuments%%path%suspect.txt<br />		{<br />&nbsp; &nbsp; 		RegExMatch(A_LoopReadLine, &quot;] Вопрос от{ffffff} (.*) {33aa33}ID {ffffff}&quot;, suspectname)<br />&nbsp; &nbsp; 		RegExMatch(A_LoopReadLine, &quot; {33aa33}ID {ffffff}(.*)&quot;, suspectid)<br />		}<br />}<br />return</p></div></div><p>Помогите &quot;остановить&quot; скрипт</p>]]></content>
			<author>
				<name><![CDATA[Roma_Cuffor]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32990</uri>
			</author>
			<updated>2015-04-10T15:01:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=93214#p93214</id>
		</entry>
</feed>
