<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; [AHK]: Проблема с чатом.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13842&amp;type=atom" />
	<updated>2018-06-11T21:25:59Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13842</id>
		<entry>
			<title type="html"><![CDATA[[AHK]: Проблема с чатом.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=125951#p125951" />
			<content type="html"><![CDATA[<p>Приветствую! Код: <br /></p><div class="codebox"><pre><code>~Enter::
if (isInChat() = 1)
{
    sleep 250
    dwAddress := dwSAMP + 0x12D8F8
    chatInput := readString(hGTA, dwAddress, 256)
      
 if chatinput contains /uninv
RegExMatch(chatInput, &quot;/uninv ([0-9]+) (.*)&quot;, Out)
if out1 = 
{
	addchatmessage(&quot;Используйте /uninv [ID] [Причина].&quot;) 
}
else
{
AddChatMessage(&quot;Жетон: &quot; Out1 &quot; остранён. Причина: &quot; Out2)
}
return
}</code></pre></div><p>Проблема заключается&nbsp; в том, что в открытом, пустом чате, при нажатии Enter воспроизводиться строка, даже когда в ней ничего не написано:&nbsp; AddChatMessage(&quot;Жетон: &quot; Out1 &quot; остранён. Причина: &quot; Out2).&nbsp; Помогите пожалуйста решить проблему, заранее спасибо )</p>]]></content>
			<author>
				<name><![CDATA[Mancini_48]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39316</uri>
			</author>
			<updated>2018-06-11T21:25:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=125951#p125951</id>
		</entry>
</feed>
