29.01.2015, 21:26
Hi,
I'm getting the following errors
which is this:
The include is loading before (at least it should -line 13):
I didn't change anything on the a_npc.inc... The forwards are done by default in it, see:
EDIT: Nevermind
I'm getting the following errors
Код:
(1938) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd") (1940) : error 017: undefined symbol "StartRecordingPlayback" (1944) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle") (1944) : error 017: undefined symbol "StartRecordingPlayback" (1945) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle") (1945) : error 017: undefined symbol "StopRecordingPlayback"
pawn Код:
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
pawn Код:
#include <a_npc>
I didn't change anything on the a_npc.inc... The forwards are done by default in it, see:
pawn Код:
native StartRecordingPlayback(playbacktype, recordname[]);
native StopRecordingPlayback();
native PauseRecordingPlayback();
native ResumeRecordingPlayback();
pawn Код:
forward OnNPCModeInit();
forward OnNPCModeExit();
forward OnNPCConnect(myplayerid);
forward OnNPCDisconnect(reason[]);
forward OnNPCSpawn();
forward OnNPCEnterVehicle(vehicleid, seatid);
forward OnNPCExitVehicle();
forward OnClientMessage(color, text[]);
forward OnPlayerDeath(playerid);
forward OnPlayerText(playerid, text[]);
forward OnPlayerStreamIn(playerid);
forward OnPlayerStreamOut(playerid);
forward OnVehicleStreamIn(vehicleid);
forward OnVehicleStreamOut(vehicleid);
forward OnRecordingPlaybackEnd();
EDIT: Nevermind