@jonnyboy:
I see:
Код:
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(15) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd")
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(15) : error 017: undefined symbol "StartRecordingPlayback"
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(18) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(18) : error 017: undefined symbol "StartRecordingPlayback"
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(19) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle")
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(19) : error 017: undefined symbol "StopRecordingPlayback"
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(522) : error 017: undefined symbol "AnotherVehicleID"
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(527) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
But
pawn Код:
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING); // line 15
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING); // line 18
public OnNPCExitVehicle() StopRecordingPlayback(); // line 19
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
=> This error from file gm.pwn and it in folder
gamemodes, but from file source I can know true position is
npcmodes, and line 522, 527 with
error 017: undefined symbol "AnotherVehicleID" => It must not the same time at a file.
Ex: My npcmode with name is "williams.amx":
pawn Код:
#define RECORDING "williamsbusdriver" //This is the filename of your recording without the extension, this file is npcmodes/recording/williamsbusriver.rec.
#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
And In my script I was call it:
pawn Код:
public OnFilterScriptInit()
{
print("\n-----------------------------------------");
print(" Bus Driver NPC Script by Tuвn Anh");
print("------------------------------------------\n");
//SetGameModeText("NPC Mode");
ConnectNPC("BusWilliams","williams"); //set NPC name is BusWilliams, with npcmode williams.amx
MyFirstNPCVehicle = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}
I have called "#include <a_npc>" in my script !
Sorry for my bad english !