<?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=13498&amp;type=atom" />
	<updated>2018-03-04T02:31:27Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13498</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите разобраться.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123899#p123899" />
			<content type="html"><![CDATA[<p>В самом конце добавь } или после активации&nbsp; убери {</p>]]></content>
			<author>
				<name><![CDATA[234783g]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39015</uri>
			</author>
			<updated>2018-03-04T02:31:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123899#p123899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите разобраться.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=123866#p123866" />
			<content type="html"><![CDATA[<p>Сделал скрипт, авто продажу наркотиков, однако что-то пошло не так и AHK пишет что где-то отсутствует {<br />Помогите найти где отсутствует скобка {<br /></p><div class="codebox"><pre><code>:?:/selldrugsrp::
{
addChatMessage(&quot;{FFFF00}[AHK Helper]: {FF0000}Продажа наркотиков - была включена&quot;)
addChatMessage(&quot;{FFFF00}[AHK Helper]: {FF0000}Для отключения пропишите {9ACD32}/ahkreload&quot;)
way = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt ; Путь к ЧатЛогу
FileDelete, %way%  ; Удаляем ЧатЛог
Loop
{
SendMessage, 0x50,, 0x4190419,, A
SendInput {F6} Holla {Enter}
SendInput {F6} Не желаете купить чай?{Enter}
FileRead, file, %way%  ; Читаем ЧатЛог
IfInString, file, Да ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Неудачно]&quot;
    IfInString, file, Да. ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Неудачно]&quot;
        IfInString, file, Желаю ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Неудачно]&quot;
            IfInString, file, Хочу ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Неудачно]&quot;
                IfInString, file, Давай ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Неудачно]&quot;
{
SendMessage, 0x50,, 0x4190419,, A
SendInput, {F6}Хорошо {Enter}
SendInput, {F6}Один грамм чая стоит 20-ть долларов. {Enter}
SendInput, {F6}Вы согластны? {Enter}
FileDelete, %way%  ; Удаляем ЧатЛог
}
IfInString, file, Да ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Удачно]&quot;
    IfInString, file, Хорошо ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Удачно]&quot;
        IfInString, file, Я согласен ; Ищем в ЧатЛоге фразу &quot;нашел нычку [Удачно]&quot;
{
SendInput {F6} Хорошо, сколько вам грамм ? {Enter}
FileDelete, %way%  ; Удаляем ЧатЛог
}
if RegExMatch(Chatlog, &quot;s).*\[(..):(..):(..)\Q] Мне (\E(.*)\Q грамм)\E&quot;, name)
    if RegExMatch(Chatlog, &quot;s).*\[(..):(..):(..)\Q]  (\E(.*)\Q грамм)\E&quot;, name)
        if RegExMatch(Chatlog, &quot;s).*\[(..):(..):(..)\Q]  (\E(.*)\Q грам)\E&quot;, name)
            if RegExMatch(Chatlog, &quot;s).*\[(..):(..):(..)\Q] Мне (\E(.*)\Q грам)\E&quot;, name)
{
    if(isInChat())
        return
    id := getClosestPlayerId()
    ped := getTargetPed()
    if(ped)
    {
        A:= %name1%*20
        pid := getIdByPed(ped)
        SendInput, {F6}/selldrugs 1 %pid% %name1% %A%{Enter}
    }
    else if(id &gt; -1)
        SendInput, {F6}/selldrugs 1 %id% %name1% %A%{Enter} 
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Kaita]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39098</uri>
			</author>
			<updated>2018-02-28T20:26:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=123866#p123866</id>
		</entry>
</feed>
