Actor Problems. Include eaf of Emmet_ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Actor Problems. Include eaf of Emmet_ (
/showthread.php?tid=618452)
Actor Problems (Other Errors) -
HoangNam - 06.10.2016
Код:
#include <a_samp>
#include <a_objects>
#include <a_actor>
#include <a_players>
#include <streamer>
#define MAX_ACTORS 100
new actor1;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_YES)
{
new actorid = GetPlayerTargetActor(playerid);
if(GetPlayerTargetActor(playerid) != INVALID_ACTOR_ID)
{
if(actorid == actor1)
{
SendClientMessageToAll(-1,"YEahhh, it's working");
}
}
}
return 1;
}
public OnFilterScriptInit()
{
actor1 = CreateActor(29, 1372.7889,-1760.5447,13.6779, 180);
return 1;
}
Код:
C:\Users\PC\Downloads\Compressed\samp03z_svr_R4_win32\filterscripts\mobile.pwn(2701) : error 017: undefined symbol "GetPlayerTargetActor"
C:\Users\PC\Downloads\Compressed\samp03z_svr_R4_win32\filterscripts\mobile.pwn(2702) : error 017: undefined symbol "GetPlayerTargetActor"
Help!
Re: Actor Problems. Include eaf of Emmet_ -
SickAttack - 06.10.2016
You could use GetPlayerTargetActor.
Re: Actor Problems. Include eaf of Emmet_ -
HoangNam - 06.10.2016
Quote:
Originally Posted by SickAttack
You could use GetPlayerTargetActor.
|
Ya I know it but in Emmet's topic, I saw callback OnPlayerTargetActor
I want if players target actor, the dialog will appear? But I dont know how to do it, can you help me?
Re: Actor Problems. Include eaf of Emmet_ -
HoangNam - 06.10.2016
Other Errors!!