[14:45:49] Incoming connection: 127.0.0.1:63231 [14:46:30] Incoming connection: 127.0.0.1:63232
When I do "/stoprecord" after "/ofrecord blah" my recordings folder is still empty... there is no such a file like blah.rec... What should I do?
|
When I do "/stoprecord" after "/ofrecord blah" my recordings folder is still empty... there is no such a file like blah.rec... What should I do?
|
C:\Users\HELLBOY\Desktop\Server\npcmodes\Optimuss_ Prime.pwn(14) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit") C:\Users\HELLBOY\Desktop\Server\npcmodes\Optimuss_ Prime.pwn(17) : error 017: undefined symbol "ConnectNPC" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#define RECORDING "Ballas" #define RECORDING_TYPE 2 #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 OnGameModeInit() { print("my gamemode"); ConnectNPC("MyFirstNPC","Ballas"); return 1; } |
How can I make it so when a player enters the NPC's car a Dialog shows asking him where he would like to go, then when the players clicks on a location the NPC starts to drive there?
|
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.
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
if(IsPlayerNPC(playerid)) return 1; //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Bot01", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
return 1;
}
if(!strcmp(npcname, "Bot02", true))
{
PutPlayerInVehicle(playerid, AnotherVehicleID, 0); // 522
return 1;
}
return 1;
}
GameTextForPlayer(playerid, "~b~/cmds * ~r~/rules * ~g~/jobs", 5000, 1); // line 527
new MyFirstNPCVehicle; //Global variable!
public OnFilterScriptInit()
{
print("\n-----------------------------------------");
print(" Bus Driver NPC Script by Tuвn Anh");
print("------------------------------------------\n");
//SetGameModeText("NPC Mode");
ConnectNPC("BusWilliams","williams");
MyFirstNPCVehicle = CreateVehicle(437, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new string[128];
new playername[MAX_PLAYER_NAME];
SetPlayerSkin(playerid,165);
GetPlayerName(playerid,playername,64);
SetPlayerColor(playerid,0xFF8000FF);
format(string, sizeof(string),"Hi all, I am %s(%d) Bus Driver. My ID car: %d", playername, playerid, MyFirstNPCVehicle);
SendPlayerMessageToAll(playerid, string);
Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Bus Driver\nWilliams",0xFF000099,0,0,2,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
if(!strcmp(playername, "BusWilliams", true)) {
SetSpawnInfo(playerid, 0, 165, 1529.6,-1691.2,13.3);
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 1);
//return 1;
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}
#define RECORDING "williamsbusdriver" //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
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.
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
#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
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;
}