<?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=13119&amp;type=atom" />
	<updated>2017-10-25T14:03:01Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13119</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120411#p120411" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, спс тут работает.</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-25T14:03:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120411#p120411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120410#p120410" />
			<content type="html"><![CDATA[<p><strong>sanniauto</strong>,<br /></p><div class="codebox"><pre><code>
!1::
ids := getIdsInAnyVehicle()
if (!ids)
	AddChatMessage(&quot;Кроме вас не кого в машине нету.&quot;)
else if (ids == -1)
	AddChatMessage(&quot;Вы не в машине&quot;)
else
{
	for k, v in ids
	{
		addchatmessage(v) ; в v и содержится ид
	}
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-10-25T12:25:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120410#p120410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120402#p120402" />
			<content type="html"><![CDATA[<p>Если ты про это,<br /></p><div class="codebox"><pre><code>F5::
Playerids := getIdsInAnyVehicle()
addChatMessage(&quot;id: &quot;(Playerids))
return</code></pre></div><p>то тут не выводит иды игроков.</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-25T01:00:35Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120402#p120402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120401#p120401" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, а как вывести значение из массива?</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-25T00:59:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120401#p120401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120400#p120400" />
			<content type="html"><![CDATA[<p><strong>sanniauto</strong>, выведи значение из массива.. Шо ты тупишь?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-10-25T00:47:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120400#p120400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120399#p120399" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, ну массив то понятно, но можно ли вывести именно конкретные иды игроков?</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-25T00:13:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120399#p120399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120378#p120378" />
			<content type="html"><![CDATA[<p><strong>sanniauto</strong>, она возвращает массив идов.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-10-24T15:51:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120378#p120378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120376#p120376" />
			<content type="html"><![CDATA[<p>Прочитайте в справке как работают функции и все поймете.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-24T15:33:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120376#p120376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120374#p120374" />
			<content type="html"><![CDATA[<p>Хотя я не понял какая переменная выводит id всех игроков, если эта - getIdsInAnyVehicle() - то она не выводит.</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-24T14:07:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120374#p120374</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120361#p120361" />
			<content type="html"><![CDATA[<p>А всё понял.</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-24T05:26:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120361#p120361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120359#p120359" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong>, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-24T04:22:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120359#p120359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120358#p120358" />
			<content type="html"><![CDATA[<p>Выдает все иды кроме твоего.<br /></p><div class="codebox"><pre><code>getIdsInAnyVehicle()
{
	if (isPlayerInAnyVehicle())
	{
		cVeh := readDWORD(hGTA, 0xB79530)
		playerCount := 0
		ids := []
		index := 0
        
		Loop, 8
		{
			playerId := getIdByPed(readDWORD(hGTA, cVeh + (1120 + index)))
			if (playerId != -1)
			{
				playerCount++
				ids.Push(playerId)
			}
            index := 4 * A_Index
		}
		
		if (!playerCount)
			return 0
		return ids
	}
	return -1
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-10-24T04:08:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120358#p120358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проверка, находится ли игрок в транспорте.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120357#p120357" />
			<content type="html"><![CDATA[<p><strong>Игра: san andreas multiplayer<br />Язык: AutoHotKey</strong></p><p>Всем привет, мне нужно, чтобы высвечивались имена всех игроков, которые нахотядся на пассажирском сидении в моём транспорте. На нажатие кнопки F2, не подскажете как такое можно сделать?</p>]]></content>
			<author>
				<name><![CDATA[sanniauto]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38823</uri>
			</author>
			<updated>2017-10-24T01:07:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120357#p120357</id>
		</entry>
</feed>
