NPC help
#1

Код:
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(7) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd")
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(7) : error 017: undefined symbol "StartRecordingPlayback"
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(10) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(10) : error 017: undefined symbol "StartRecordingPlayback"
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(11) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle")
C:\Users\Jack\Desktop\samp\filterscripts\npc.pwn(11) : error 017: undefined symbol "StopRecordingPlayback"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
heres FS

pawn Код:
#include <a_samp>
#include <a_npc>
#define RECORDING "mynpc" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 1
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

new MyFirstNPCVehicle;
public OnFilterScriptInit()
{
  print("my gamemode");
  ConnectNPC("James_Keyworth","mynpc");
  MyFirstNPCVehicle = CreateVehicle(545, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
  return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //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, "James_Keyworth", 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;
  }
  //Other stuff for normal players goes here!
  return 1;
}
Reply


Messages In This Thread
NPC help - by Jack_Rocker - 04.04.2011, 13:49
Re: NPC help - by Amel_PAtomAXx - 04.04.2011, 13:51
Re: NPC help - by Jack_Rocker - 04.04.2011, 14:40
Re: NPC help - by Amel_PAtomAXx - 04.04.2011, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)