SA-MP Forums Archive
NPC Problem - 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: NPC Problem (/showthread.php?tid=510879)



NPC Problem - Xenforox - 02.05.2014

Hello guys been trying to script a bodyguard npc system recently and i've found this nice thread (https://sampforum.blast.hk/showthread.php?tid=428066) But when i tried to start making my fs, i've started with the create function
Код:
	FCNPC_Create(name[]);
    FCNPC_Spawn(name, 61, 1882.0747, 2132.1841, 10.8203);
But i got this two errors

Код:
(39) : error 017: undefined symbol "name"
          (40) : error 017: undefined symbol "name"
Can you help me please?!


AW: NPC Problem - rospar - 02.05.2014

new npcid = FCNPC_Create("MyBot");
FCNPC_Spawn(npcid, 61, 1882.0747, 2132.1841, 10.8203);

you should give the bot a name and you need the npcid to Spawn it


Re : NPC Problem - Xenforox - 03.05.2014

I keep getting error related to the functions being undefined, is there another way to controll npc?