Need help with NPC!. - 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: Need help with NPC!. (
/showthread.php?tid=498877)
Need help with NPC!. -
JackieJ - 05.03.2014
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();
}
Re: Need help with NPC!. -
XK - 05.03.2014
What is this for:
pawn Код:
#define NPC NpcPlayerBack
Re: Need help with NPC!. -
JackieJ - 05.03.2014
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
Re: Need help with NPC!. -
XK - 05.03.2014
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
Re: Need help with NPC!. -
JackieJ - 05.03.2014
Hmm its just a filterscript and i really want npc's in my server its would really cool :/
Re: Need help with NPC!. -
Konstantinos - 05.03.2014
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:
Re: Need help with NPC!. -
JackieJ - 05.03.2014
Thanks
. +rep
Re: Need help with NPC!. -
XK - 05.03.2014
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 .
Re: Need help with NPC!. -
XK - 05.03.2014
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