<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; [SA:MP]: Проблемы с samp.ahk]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=13210</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13210&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «[SA:MP]: Проблемы с samp.ahk».]]></description>
		<lastBuildDate>Thu, 16 Nov 2017 17:12:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[[SA:MP]: Проблемы с samp.ahk]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=121267#p121267</link>
			<description><![CDATA[<p>Приветствую. Совсем недавно решил изучить программу AutoHotKeys, но столкнулся с проблемой. Один человек, который решил помочь мне с этим, скинул мне 2 файла. При запуске скрипта он не работает в игре, не знаю, в чём причина. У человека, который это скинул всё прекрасно работало, но у меня почему то нет.<br /></p><div class="codebox"><pre><code>#include samp.ahk

SendMode Input
SetWorkingDir %A_ScriptDir%
#IfWinActive GTA:SA:MP
SelectedFile = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt

$~Enter::
	AntiCrash()
	sleep, 30
	if (isInChat() = 0) or (isDialogOpen() = 1)
	sleep 300
	dwAddress := dwSAMP + 0x12D8F8
	chatInput := readString(hGTA, dwAddress, 256)
	sleep 300
	
	if chatInput contains /ввод
	{
	RegExMatch(chatInput, &quot;/ввод(.*)&quot;, id)
	name:=getPlayerNameById(id)
	RegExMatch(name, &quot;(.*)_(.*)&quot;, result)
	SendChat(&quot;Ударил &quot; result1 &quot; &quot; result2 &quot; клюшкой по голове&quot;)
	return
	}
return </code></pre></div><p> </p><p>Выше указал скрипт.</p>]]></description>
			<author><![CDATA[null@example.com (danil.martinelli)]]></author>
			<pubDate>Thu, 16 Nov 2017 17:12:24 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=121267#p121267</guid>
		</item>
	</channel>
</rss>
