Npc help! - 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 help! (
/showthread.php?tid=308086)
Npc help! -
$$Money$$ - 02.01.2012
When i already finish recording the npc using NPC GENERATOR
I was editing it to make it connect
pawn Code:
#include <a_npc>
#define rec "Drug"
main() {}
NextPlayBack()
{
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT, NPC);
}
public OnRecordingPlaybackEnd()
{
NextPlayBack();
}
public OnNPCSpawn()
{
NextPlayBack();
}
public OnNPCExitVehicle()
{
StopRecordingPlayback();
}
Code:
C:\Users\AztecasGamerzzz\Desktop\GOod Servers\TRRP v1.0\scriptfiles\NPC.pwn(8) : error 017: undefined symbol "NPC"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Npc help! -
Dark_Kostas - 02.01.2012
replace this
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOO T, NPC);
with this
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOO T, rec);