<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; SAMP help | Фильтр лога]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=12839</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12839&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «SAMP help | Фильтр лога».]]></description>
		<lastBuildDate>Sat, 22 Jul 2017 07:35:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[SAMP help | Фильтр лога]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=117456#p117456</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (santicliff)]]></author>
			<pubDate>Sat, 22 Jul 2017 07:35:16 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=117456#p117456</guid>
		</item>
	</channel>
</rss>
