<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; SAMP help | Фильтр лога]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12839&amp;type=atom" />
	<updated>2017-07-22T07:35:16Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12839</id>
		<entry>
			<title type="html"><![CDATA[SAMP help | Фильтр лога]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=117456#p117456" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#IfWinActive GTA:SA:MP 
#SingleInstance Force 
#NoEnv 
ListLines Off 
SetBatchLines -1 
Words = (warn|kick|ban|mute|jail|skick|hp|unjail|skin|hp|unban) 
F2:: 
{
 FileRead, Str, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
 StringReplace, Str, Str, `r`n, `n, 1 
 StringReplace, Str, Str, `r, `n, 1 
 
 RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+]\s*\[A].*?\[.*?]:\s*(/`*&quot; Words &quot;\s.*?)\n&quot;, Match) 
 ToolTip % Clipboard := Match1 
 FileAppend,%Match1%`n,logachat.ini 
 Sleep 100 
 SendInput,{F6}%match1% |{space} 
 clipboard = 
 ToolTip 
 FileDelete,%A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt 
 Return 
}</code></pre></div><p>Нужно из лога вытащить строку. В строке нужно найти слова, но не суть. Тут видно. Из этой же строки нужно достать ник админитратора, как это сделать?<br />Вид лога<br /></p><div class="codebox"><pre><code>[Чч:мм:сс] [A] Nick_Name: text</code></pre></div><p>Желательно было бы как нибудь достать в отдельную переменную как Nick так и Name, и уместить в уже готовый фильтр<br /></p><div class="codebox"><pre><code>RegExMatch(&quot;`n&quot; Str &quot;`n&quot;, &quot;i).*\n\[\d+:\d+:\d+]\s*\[A].*?\[.*?]:\s*(/`*&quot; Words &quot;\s.*?)\n&quot;, Match) </code></pre></div>]]></content>
			<author>
				<name><![CDATA[santicliff]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38644</uri>
			</author>
			<updated>2017-07-22T07:35:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=117456#p117456</id>
		</entry>
</feed>
