<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проблема с UDF - getPlayerIdByName()]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14481&amp;type=atom" />
	<updated>2019-01-10T04:19:26Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14481</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблема с UDF - getPlayerIdByName()]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=130939#p130939" />
			<content type="html"><![CDATA[<p><strong>Purple</strong>, ты пытаешься ид получить из пустой переменной. Получение ника нужно раньше делать.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2019-01-10T04:19:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=130939#p130939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Проблема с UDF - getPlayerIdByName()]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=130926#p130926" />
			<content type="html"><![CDATA[<p>Сделал код сокращения команды для создания Дигла. <br />&#039;getUserName()&#039; в игре работает отлично, а вот &#039;getPlayerIdByName()&#039;, мягко говоря, не очень... <br />При вводе команды &#039;/dg 5&#039; в чат вставляется &#039;/sellgun Deagle 5 10 -1&#039; </p><p>UDF находится в той же папке, что и скрипт. <br />Компилирую с помощью AHK2exe, в <span class="bbu">v1.1.30.1 ANSI 32-bit</span>. (менял на <span class="bbu">v1.1.30.1 Unicode 32-bit</span> и <span class="bbu">v1.1.30.1 Unicode 64-bit</span> - 0 реакции) </p><div class="codebox"><pre><code>#Include UDF.ahk 
#IfWinActive GTA:SA:MP 

myplayerid:=GetPlayerIdByName(mynickname) 
mynickname:=GetUserName() 

:?:/dg 5:: 
SendMessage, 0x50,, 0x4190419,, A 
Sleep, 100 
SendInPut, {F6}/sellgun Deagle 5 10 %myplayerid%{Enter} 
Return</code></pre></div><p> </p><p>Может кто знает как исправить? <br />Заранее спасибо <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Purple]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39723</uri>
			</author>
			<updated>2019-01-09T14:10:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=130926#p130926</id>
		</entry>
</feed>
