17.01.2013, 14:33
I am tryng to create a NPC using https://sampforum.blast.hk/showthread.php?tid=110195
but when I add the
part it says :
Whole script :
but when I add the
PHP код:
public OnFilterScriptInit()
{
ConnectNPC("MyFirstNPC","mynpc");
return 1;
}
PHP код:
"C:\Users\Remco\Desktop\SAMP Server\filterscripts\Bus2.pwn(15) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\Remco\Desktop\SAMP Server\filterscripts\Bus2.pwn(17) : error 017: undefined symbol "ConnectNPC""
PHP код:
#define RECORDING "Bus" //Dit is de bestandsnaam van je opgenomen bestand, zonder extensie!
#define RECORDING_TYPE 1 //1 Voor in een voertuig en 2 voor te voet.
#include <a_npc>
main(){}
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
public OnFilterScriptInit()
{
ConnectNPC("MyFirstNPC","mynpc");
return 1;
}