<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помощь с "InStr"]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11982&amp;type=atom" />
	<updated>2016-09-08T12:35:31Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11982</id>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107414#p107414" />
			<content type="html"><![CDATA[<p>Решил проблему сам.<br /></p><div class="codebox"><pre><code>
RegExMatch(chatolg, &quot;Сообщение от Member[0]: .*?(\d+).*&quot; apm)
apm1 = 101
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[RellaX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33733</uri>
			</author>
			<updated>2016-09-08T12:35:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107414#p107414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107346#p107346" />
			<content type="html"><![CDATA[<p><strong>Drusik</strong>, Мне нужен ид не того кто написал, а тот который указан после &quot;:&quot;.</p>]]></content>
			<author>
				<name><![CDATA[RellaX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33733</uri>
			</author>
			<updated>2016-09-06T13:13:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107346#p107346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107325#p107325" />
			<content type="html"><![CDATA[<p><strong>RellaX</strong></p><p>Так и не суть, манипулируйте шаблоном как хотите</p><div class="codebox"><pre><code>&quot;Сообщение от (.*)\[(.*)\]: У вас (.*) ошибка&quot;</code></pre></div><p>К примеру если у вас еще и включен timestamp то делаем так</p><div class="codebox"><pre><code>&quot;\[(.*)\] Сообщение от (.*)\[(.*)\]:(.*)</code></pre></div><p>если нужно быстро ответить на это смс то</p><div class="codebox"><pre><code>sendinput{F6}/sms %masage3% текст{space}</code></pre></div><p>где %masage3% отобразит ID человека который вам написал.</p>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-09-05T20:16:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107325#p107325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107321#p107321" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, сделано</p>]]></content>
			<author>
				<name><![CDATA[RellaX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33733</uri>
			</author>
			<updated>2016-09-05T14:01:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107321#p107321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107320#p107320" />
			<content type="html"><![CDATA[<p><strong>RellaX</strong>, допишите точки в конце предложений, пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-09-05T09:56:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107320#p107320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107319#p107319" />
			<content type="html"><![CDATA[<p>Я немного не дописал видимо, там-где &quot;У вас 101 ошибка&quot; - так-же может быть рандомный текст и рандомное расположение слов, который напишет другой игрок.</p>]]></content>
			<author>
				<name><![CDATA[RellaX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33733</uri>
			</author>
			<updated>2016-09-05T06:26:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107319#p107319</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107318#p107318" />
			<content type="html"><![CDATA[<p>Если я правильно понял, вам нужно что-то типо такого</p><div class="codebox"><pre><code>global chat_log := A_MyDocuments &quot;\GTA San Andreas User Files\SAMP\chatlog.txt&quot;  ; путь к chatlog

    log := {str:&quot;&quot;,find:0,num:0}    ,    log.str := []

    Loop, read, %chat_log%
    log.str.Insert(A_LoopReadLine)    ,log.num := A_Index
	
	loop 3
    if RegExMatch(     log.str[log.num + 1 - A_Index]
        ,&quot;Сообщение от (.*)\[(.*)\]: У вас (.*) ошибка&quot;
        , massage) and (log.find:=log.num + 1 - A_Index)
            break
			
	sendinput {f6}Вам сообщение от %massage1%[%massage2%]: У вас ошибка %massage3%{space}		</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Drusik]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33171</uri>
			</author>
			<updated>2016-09-04T21:50:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107318#p107318</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107312#p107312" />
			<content type="html"><![CDATA[<p>А RegExMatch чем не устраивает? Там часть текста можно заключить в сабпаттерн и вывести его.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-09-04T18:25:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107312#p107312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помощь с "InStr"]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=107310#p107310" />
			<content type="html"><![CDATA[<p>Приветствую, столкнулся с такой проблемой:<br />Допустим мне приходит сообщение в SAMP&#039;e (Сообщение от Member[0]: У вас 101 ошибка).<br />- я вывожу через RegExMatch текст (У вас 101 ошибка), как мне сделать чтобы &quot;InStr&quot; увидел любое число там где &quot;101&quot; и запомнил его?<br />p.s На месте (У вас 101 ошибка) может быть рандомный текст и рандомное расположение слов.</p>]]></content>
			<author>
				<name><![CDATA[RellaX]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33733</uri>
			</author>
			<updated>2016-09-04T16:28:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=107310#p107310</id>
		</entry>
</feed>
