<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите вывести в диалог в игре ( SAMP )]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13135&amp;type=atom" />
	<updated>2017-11-01T18:49:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13135</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120687#p120687" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>loadinformtoIpRu(IP){
	UrlDownloadToFile, % &quot;http://api.2ip.ua/geo.xml?ip=&quot; IP, ipinfo.xml
	UrlDownloadToFile, % &quot;http://api.2ip.ua/provider.xml?ip=&quot; IP, infprov.xml
	FileRead, ipinfo, *P65001 %A_ScriptDir%\ipinfo.xml
	FileRead, infprov, *P65001 %A_ScriptDir%\infprov.xml
	RegExMatch(ipinfo,&quot;&lt;country_rus&gt;(.*)&lt;/country_rus&gt;.*&lt;region_rus&gt;(.*)&lt;/region_rus&gt;.*&lt;city_rus&gt;(.*)&lt;/city_rus&gt;.*&lt;latitude&gt;(.*)&lt;/latitude&gt;.*&lt;longitude&gt;(.*)&lt;/longitude&gt;.*&lt;time_zone&gt;(.*)&lt;/time_zone&gt;&quot;,infip)
	infprov := RegExReplace(infprov,&quot;&amp;quot;&quot;,&quot;&#039;&#039;&quot;)
	RegExMatch(infprov,&quot;&lt;ip&gt;(.*)&lt;/ip&gt;.*&lt;name_rus&gt;(.*)&lt;/name_rus&gt;.*&lt;site&gt;(.*)&lt;/site&gt;&quot;,infp)
	FileDelete, %A_ScriptDir%\ipinfo.xml
	FileDelete, %A_ScriptDir%\infprov.xml
	infip := Array(infip1,infip2,infip3,infip4,infip5,infip6,infp1,infp2,infp3)
	return infip
}</code></pre></div><p>Функа выдает массив информации, а именно:<br />1. Страна<br />2. Область<br />3. Город<br />4,5. Информация про расположение (точно не помню)<br />6. Часовой пояс<br />7. IP<br />8. Провайдер<br />9. Сайт провайдера</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2017-11-01T18:49:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120687#p120687</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120681#p120681" />
			<content type="html"><![CDATA[<p>Руками пробить IP гораздо проще и быстрее</p>]]></content>
			<author>
				<name><![CDATA[anerevandrey]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34113</uri>
			</author>
			<updated>2017-11-01T15:31:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120681#p120681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120561#p120561" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>belyankin12 пишет:</cite><blockquote><p>А, и ID диалога это не его идентификатор, а его вид</p></blockquote></div><p>Мне кажется что я то же самое написал. И &quot;можно в нем что-то писать&quot; не аргумент - все что вы туда запишите сгорит в пустоте, если вы только не используете костыль, либо не прочитаете строчку отдельной функцией. В стоковом виде строчка записи просто для красоты, как и кнопки.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-29T13:29:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120561#p120561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120560#p120560" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong><br />Это не ИД диалога вообще, а его стиль. 0 - нельзя писать, 1 - можно в нем что то писать.</p>]]></content>
			<author>
				<name><![CDATA[kostiav13]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38843</uri>
			</author>
			<updated>2017-10-29T13:10:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120560#p120560</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120527#p120527" />
			<content type="html"><![CDATA[<p>А, и ID диалога это не его идентификатор, а его вид. Ид может быть от 0 до 5 или 6, не помню точно. Но рабочие только 0 1 и 3, по крайней мере у меня.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-28T17:09:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120527#p120527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120526#p120526" />
			<content type="html"><![CDATA[<p><strong>kostiav13</strong>, вам даже парсер на сайте подсвечивает где строка, а где ф-ии и переменные в коде. И в одном параметре в последнем вашем сообщении вышло шиворот-навыворот. Уберите три лишних знака, чтобы исправить.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-28T16:11:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120526#p120526</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120524#p120524" />
			<content type="html"><![CDATA[<p>Это не в UDF дело, а в ваших знаниях относительно функций. Такой фокус не пройдет. Присваивайте какой-то переменной свою переменную, покороче чтобы было и без всяких символов, а потом по классике &quot;&quot; . var . &quot;&quot; вводите.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-28T14:06:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120524#p120524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120523#p120523" />
			<content type="html"><![CDATA[<p>Я сделал что то не так??<br />Просто вообще с UDF не разобрался<br /></p><div class="codebox"><pre><code>Showdialog(&quot;366&quot;, &quot;Информация&quot;, &quot; % ie.document.getElementsByTagName(&quot;td&quot;)[6].innerText &quot;, &quot;OK&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kostiav13]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38843</uri>
			</author>
			<updated>2017-10-28T13:55:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120523#p120523</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120518#p120518" />
			<content type="html"><![CDATA[<p>Мне неведомо сколько символов занимает даже отрезанный вами текст. Просто предупредил. Showdialog(&quot;id диалога&quot;, &quot;заголовок диалога&quot;, &quot;текст диалога&quot;, &quot;надпись на кнопке 1&quot;, &quot;надпись на кнопке 2 (не обязательно)&quot;). Кнопки просто для красоты.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-28T09:01:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120518#p120518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120517#p120517" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>belyankin12 пишет:</cite><blockquote><p>Ограничение на диалог 4096 символов</p></blockquote></div><p>Я же говорю, что текст не нужный отрежу регулярной, но пока я еще не совсем понял как мне это сделать</p>]]></content>
			<author>
				<name><![CDATA[kostiav13]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38843</uri>
			</author>
			<updated>2017-10-28T08:36:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120517#p120517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120508#p120508" />
			<content type="html"><![CDATA[<p>Не в этом дело. Ограничение на диалог 4096 символов. Если ограничение снять искусственно, то будет краш. Функция Showdialog создает диалог. Дерзайте.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-10-27T18:51:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120508#p120508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120499#p120499" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong><br />Это для админов сампа типо проверки рег данных, вводишь туда ип, и он показывает местоположение, но оно не доделанно еще, надо текст вырезать еще будет</p>]]></content>
			<author>
				<name><![CDATA[kostiav13]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38843</uri>
			</author>
			<updated>2017-10-27T14:19:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120499#p120499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120498#p120498" />
			<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-27T14:09:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120498#p120498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите вывести в диалог в игре ( SAMP )]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120494#p120494" />
			<content type="html"><![CDATA[<p>Нужна помощь, сейчас скрипт выводит в msgbox, а мне нужно что бы в игру в виде диалога выводило</p><br /><div class="codebox"><pre><code>#SingleInstance, force

#Include UDF.ahk

ie := ComObjCreate(&quot;InternetExplorer.Application&quot;)
inputbox, command
ie.visible := true
ie.Navigate(&quot;http://ipgeobase.ru/?address=&quot; command &quot;&amp;search=%C8%F1%EA%E0%F2%FC&quot;)
while ie.readystate &lt;&gt; 4
continue
Msgbox, % ie.document.getElementsByTagName(&quot;td&quot;)[6].innerText                 &lt;-------------- Вместо этого что бы в диалог выводилось
sleep 100
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kostiav13]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38843</uri>
			</author>
			<updated>2017-10-27T12:19:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120494#p120494</id>
		</entry>
</feed>
