<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: File Loop read]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10310&amp;type=atom" />
	<updated>2015-01-06T08:51:47Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10310</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: File Loop read]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=90031#p90031" />
			<content type="html"><![CDATA[<p>Большое спасибо</p>]]></content>
			<author>
				<name><![CDATA[drn]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32792</uri>
			</author>
			<updated>2015-01-06T08:51:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=90031#p90031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: File Loop read]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=90022#p90022" />
			<content type="html"><![CDATA[<p>А, если имелось в виду, чтобы все имена в одном диалоге, тогда да.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-06T04:45:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=90022#p90022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: File Loop read]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=90020#p90020" />
			<content type="html"><![CDATA[<p>Попробуй заменить эту строку:<br /></p><div class="codebox"><pre><code>igroka := fstring &quot;{FFFFFF}Игрок {ff9900}&quot; . getPlayerNameById(id) . &quot;[&quot; . id . &quot;] {FFFFFF}онлайн`n&quot;
</code></pre></div><p>На:<br /></p><div class="codebox"><pre><code>igroka .= fstring &quot;{FFFFFF}Игрок {ff9900}&quot; . getPlayerNameById(id) . &quot;[&quot; . id . &quot;] {FFFFFF}онлайн`n&quot;
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-01-06T04:30:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=90020#p90020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: File Loop read]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=90019#p90019" />
			<content type="html"><![CDATA[<p>Нет, диалог выводится столько раз, сколько строк в файле players.txt. Так что проблема где-то в другом месте.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-01-06T04:19:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=90019#p90019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: File Loop read]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=90006#p90006" />
			<content type="html"><![CDATA[<p>Добрый вечер, уважаемые. У меня один небольшой вопрос. Делаю скрипт для samp и столкнулся с небольшой проблемой.<br />Немного подробнее, есть файл players.txt, в нем написаны ники, каждый ник с новой строки. Скрипт должен проверить кто из этих игроков сейчас онлайн. Для проверки используется инклуд samp.ahk, но проблема заключается не в этом. В инклуде есть специальная функция для вывода диалога (ShowDialog). Так вот, скрипт должен проверить кто из игроков из списка находится онлайн и вывести их всех в диалог, каждый ник с новой строки. А мой скрипт чекает всех на онлайн, но выводит почему-то только одного. Помогите пожалуйста исправить проблему<br /></p><div class="codebox"><pre><code>#include samp.ahk
F11::
IfNotExist, %A_ScriptDir%\players.txt
FileAppend,,%A_ScriptDir%\players.txt
fstring := &quot;&quot;
Loop, read, %A_ScriptDir%\players.txt
{
StringReplace, Nick, A_LoopReadLine,%A_SPACE%,, All
if(StrLen(Nick) = 0)
continue
id := getPlayerIdByName(Nick)
if(id = -1)
continue
igroka := fstring &quot;{FFFFFF}Игрок {ff9900}&quot; . getPlayerNameById(id) . &quot;[&quot; . id . &quot;] {FFFFFF}онлайн`n&quot;
ShowDialog(&quot;0&quot;, &quot;{ff0000}Игроки ONLINE&quot;, igroka, &quot;Закрыть&quot;)
}
if шпкщлф =
{
ShowDialog(&quot;0&quot;, &quot;{ff0000}Игроки ONLINE&quot;, &quot;{ff9900}Игроков нет!&quot;, &quot;Закрыть&quot;)
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[drn]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32792</uri>
			</author>
			<updated>2015-01-05T17:46:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=90006#p90006</id>
		</entry>
</feed>
