Need help with NPC!.
#1

Error:
Код HTML:
C:\Users\JACOLA03\Desktop\war thunder\scriptfiles\mynpc.pwn(6) : error 017: undefined symbol "NpcPlayback"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Lines:
Код HTML:
#include <a_npc>
#define NPC NpcPlayback

NextPlayBack()
{
	StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,NPC);
}

public OnRecordingPlaybackEnd()
{
	NextPlayBack();
}
public OnNPCSpawn()
{
	NextPlayBack();
}
public OnNPCExitVehicle()
{
	StopRecordingPlayback();
}
Reply
#2

What is this for:
pawn Код:
#define NPC NpcPlayerBack
Reply
#3

I dont know im just downloaded it .

here is the theard test it out and help me?

https://sampforum.blast.hk/showthread.php?tid=299207%22
Reply
#4

if you dont know the use of it why did you add it?if you remove the line does it show errors?because you dont have any use for it,just delete it and check,and it's created wrong way,i mean this define.. and in StarRecordingPlayBack change NPC to the file name of .rec
Reply
#5

Hmm its just a filterscript and i really want npc's in my server its would really cool :/
Reply
#6

https://sampwiki.blast.hk/wiki/NPC:StartRecordingPlayback

recordname -> The filename to be loaded, without the .rec extension.

Replace in this line:
pawn Код:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,NPC);
NPC with the name of the filename and remove this line:
pawn Код:
#define NPC NpcPlayback
Reply
#7

Thanks . +rep
Reply
#8

as i told you to remove it
and in this:
pawn Код:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,NPC);
Instead of NPC write the name of the .rec file .
Reply
#9

No rep for me?
omg i told you to delete it at first and what to do....and the guys kon... said the same and you gave him +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)