NPC error - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC error (
/showthread.php?tid=133093)
NPC error -
GuikBretas - 11.03.2010
#include <a_npc>
#define RECORDING MeuPrimeiroNPC
#define RECORDING_TYPE 2
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 2
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
errors:
D:\Guilherm\GTASAH\SA-MP 0.3a Server\SAMP 0.3 Server\npcmodes\NPC.pwn(7) : error 017: undefined symbol "MeuPrimeiroNPC"
D:\Guilherm\GTASAH\SA-MP 0.3a Server\SAMP 0.3 Server\npcmodes\NPC.pwn(9) : error 017: undefined symbol "MeuPrimeiroNPC"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: NPC error -
Backwardsman97 - 11.03.2010
You never defined MeuPrimeiroNPC.
Re: NPC error -
GuikBretas - 11.03.2010
#define RECORDING MeuPrimeiroNPC
MeuPrimeiroNPC in english is: MyFirstNPC
Re: NPC error -
Torran - 11.03.2010
Shouldnt it be in " "
Re: NPC error -
Fonsie - 11.03.2010
pawn Код:
#include <a_npc>
#define RECORDING MeuPrimeiroNPC
#define RECORDING_TYPE 2
#define MeuPrimeiroNPC
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#if RECORDING_TYPE == 2
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif