05.03.2011, 00:02
help... script
well i got this error and one warning
pawn Код:
#define RECORDING "spawn" //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>
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("Tanush","spawn");
return 1;
}
pawn Код:
D:\Users\Tanush\Desktop\SA-MP\filterscripts\NPC.pwn(15) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
D:\Users\Tanush\Desktop\SA-MP\filterscripts\NPC.pwn(17) : error 017: undefined symbol "ConnectNPC"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.