<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите написать скрипт.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13419&amp;type=atom" />
	<updated>2018-01-28T09:38:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13419</id>
		<entry>
			<title type="html"><![CDATA[Помогите написать скрипт.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123444#p123444" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[alavar15]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39029</uri>
			</author>
			<updated>2018-01-28T09:38:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123444#p123444</id>
		</entry>
</feed>
