Actor Problems. Include eaf of Emmet_
#1

Код:
#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!
Reply
#2

You could use GetPlayerTargetActor.
Reply
#3

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?
Reply
#4

Other Errors!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)