<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Помогите написать скрипт.]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=13419</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13419&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помогите написать скрипт.».]]></description>
		<lastBuildDate>Sun, 28 Jan 2018 09:38:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Помогите написать скрипт.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=123444#p123444</link>
			<description><![CDATA[<p>Приветствую, появилась такая проблема. Хочу сделать так, чтобы когда вводишь /mn информация с диалога считывалась и записывалась в .ini файл. Написал, включаю, ввожу /mn , но скрипт не работает. Не могу приложить головы, в чем дело. <br /></p><div class="quotebox"><blockquote><p>if (RegExMatch(getDialogCaption(), &quot;Статистика игрока&quot;) and isDialogOpen() = 1 and UserInfo = 0)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; txt := getDialogText(), i := 1<br />&nbsp; &nbsp; &nbsp; &nbsp; Loop, Parse, txt, `n<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(RegExMatch(A_LoopField, &quot;\t(.*)&quot;, match))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stats%i% := trim(match1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; AddChatMessage(stats17 &quot; | &quot; stats18 &quot; | &quot; stats19)<br />&nbsp; &nbsp; &nbsp; &nbsp; if (stats17 == &quot;Министерство обороны&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (stats18 == &quot;Военно-морской флот&quot; or stats18 == &quot;Сухопутные войска&quot; or stats18 == &quot;Военно-воздушные силы&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %stats20%, %DIRSET%, Pers, Rang3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RegExMatch(stats1, &quot;{0099FF}(.*)_(.*)&quot;, x)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %x1%, %DIRSET%, Pers, Name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %stats16%, %DIRSET%, Pers, Sex<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %stats19%, %DIRSET%, Pers, Rang1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %stats4%, %DIRSET%, Pers, Phone1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IniWrite, %stats18%, %DIRSET%, Pers, Frak<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddChatMessage(&quot;Скрипт запущен&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (alavar15)]]></author>
			<pubDate>Sun, 28 Jan 2018 09:38:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=123444#p123444</guid>
		</item>
	</channel>
</rss>
