added NPC + got errors
#7

NPC scripts are separate modes and should reside in the npcmodes directory. Never may a_npc and a_samp be included together in one file. All of this from your original code has to be moved to a separate file which - as I said before - has to be placed in the npcmodes directory:

pawn Код:
#define RECORDING "mynpc" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1 //1 for in vehicle and 2 for on foot.
#include <a_npc>
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
Reply


Messages In This Thread
added NPC + got errors - by Defence1771 - 18.03.2012, 14:47
Re: added NPC + got errors - by Defence1771 - 18.03.2012, 16:17
Re: added NPC + got errors - by Jonny5 - 18.03.2012, 16:19
Re: added NPC + got errors - by Defence1771 - 18.03.2012, 22:00
Re: added NPC + got errors - by BosteQ - 18.03.2012, 22:13
Re: added NPC + got errors - by Defence1771 - 18.03.2012, 22:54
Re: added NPC + got errors - by Vince - 18.03.2012, 23:01

Forum Jump:


Users browsing this thread: 5 Guest(s)