SA-MP Forums Archive
Helping Compiling this - 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: Helping Compiling this (/showthread.php?tid=304437)



Helping Compiling this - $$Money$$ - 18.12.2011

Code:
C:\Users\AztecasGamerzzz\Desktop\Sa-Mp Servers\NE-RP v3.2\scriptfiles\NPC.pwn(11) : error 017: undefined symbol "NPC"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Code:
#include <a_npc>



main() {}



NextPlayBack()
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,NPC);
}
public OnRecordingPlaybackEnd()
{
    NextPlayBack();
}
public OnNPCSpawn()
{
    NextPlayBack();
}
public OnNPCExitVehicle()
{
    StopRecordingPlayback();
}



Re: Helping Compiling this - kizla - 18.12.2011

give us a line 11


Re: Helping Compiling this - $$Money$$ - 18.12.2011

pawn Code:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,NPC);



Re: Helping Compiling this - $$Money$$ - 18.12.2011

Any Help?


Re: Helping Compiling this - Thresholdold - 18.12.2011

You should be putting the name of the record file. If you named the recording file 'MyNPC' then you should replace 'NPC' with 'MyNPC'. The place where you have put it should be the name of your recording. Is your recording called 'NPC'?

EDIT: You also forgot to implement the recording. Example:
pawn Code:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,NPC);
Should become:
pawn Code:
StartRecordingPlayback(PLAYER_RECORDING_TYPE_ONFOOT,"NPC");



Re: Helping Compiling this - $$Money$$ - 18.12.2011

How can i connect my Npc ??What command??
If i connect the npc it will ask the pass how can i fix that??
I only got 1 npc i just wanna try it


Re: Helping Compiling this - $$Money$$ - 18.12.2011

How can i connect my Npc ??What command??
If i connect the npc it will ask the pass how can i fix that??
I only got 1 npc i just wanna try it