<?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=13424&amp;type=atom" />
	<updated>2018-01-29T17:43:36Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13424</id>
		<entry>
			<title type="html"><![CDATA[Re: Команда в чат]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123466#p123466" />
			<content type="html"><![CDATA[<p><strong>alavar15</strong>, скинь в вк что ты там натворил.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2018-01-29T17:43:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123466#p123466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Команда в чат]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123463#p123463" />
			<content type="html"><![CDATA[<p>Попробовал вставить в скрипт. Но при вводе команды /rn ничего не происходит(</p>]]></content>
			<author>
				<name><![CDATA[alavar15]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39029</uri>
			</author>
			<updated>2018-01-29T16:53:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123463#p123463</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Команда в чат]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123460#p123460" />
			<content type="html"><![CDATA[<p><strong>alavar15</strong>, у тебя строгая проверка на команду, а это нам сейчас не нужно.<br />Мой вариант:<br /></p><div class="codebox"><pre><code>if (RegExMatch(chatInput, &quot;^/rn&quot;))
{
    if (RegExMatch(chatInput, &quot;^/rn\s+(.*)$&quot;, out))
    {
        SendChat(&quot;/r (( &quot; out1 &quot; ))&quot;)
    }
    else
        addChatMessageEx(&quot;00FF00&quot;, &quot;{FFFFFF}Используй: {00FF00}/rn [текст]&quot;)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2018-01-29T15:20:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123460#p123460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Команда в чат]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123458#p123458" />
			<content type="html"><![CDATA[<p>Добрый день, при написании скрипта появилась такая проблема. Хочу сделать скрипт на команде. Строку автозамены использовать не могу, ибо когда нажимаешь пробел, это тоже самое что и Enter, т.е ввожу к примеру /skin, нажимаю пробел и срабатывает команда , а мне нужно чтобы можно было ставить пробел. Пробовал через ChatInput. Вообще ничего не работает. Если кто то сталкивался, подскажите что делать) Разобраться бы вот с этим кодом, который почему то не работает.<br /></p><div class="quotebox"><blockquote><p>if chatInput = /rn <br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RegExMatch(chatInput, &quot;/rn (.*)&quot;, d)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (d == &quot;&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AddChatMessage(&quot;Используйте: /rn [Сообщение]&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SendChat(&quot;(( &quot; d1 &quot; ))&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[alavar15]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39029</uri>
			</author>
			<updated>2018-01-29T09:51:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123458#p123458</id>
		</entry>
</feed>
