NPC Problem
#1

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?!
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)