[AJUDA] NPC
#1

ai pessoal segui o tuto sertin aki do forum mais deu esses 5 erros e nao consigo resolver:

pawn Код:
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd")
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(8) : error 017: undefined symbol "StartRecordingPlayback"
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(11) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle")
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(11) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(11) : error 017: undefined symbol "StartRecordingPlayback"
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(12) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle")
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(12) : error 017: undefined symbol "StopRecordingPlayback"
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(37) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Desktop\0.3server\filterscripts\npc.pwn(39) : error 030: compound statement not closed at the end of file (started at line 29)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
script:

pawn Код:
#include <a_samp>
#include <a_npc>

#define RECORDING "AQNPC" //Este й o nome do seu arquivo de gravaзгo, sem a extenзгo(.rec).
#define RECORDING_TYPE 1 //1 para gravaзхes em veнculo e 2 para gravaзхes apй.

main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);

#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle(520, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
  public OnNPCExitVehicle() StopRecordingPlayback();
#else
  public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif

new carronpc;

public OnFilterScriptInit()
{
  print("meu filterscript");
  ConnectNPC("Recruta","AQNPC");
  carronpc = CreateVehicle(520, -69.6176,2505.2476,17.2085, 0.0, 0, 0,500);
  return 1;
}

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
    if(!strcmp(npcname, "recruta", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
      PutPlayerInVehicle(playerid, carronpc, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
    }
  return 1;
}
auguem ajuda ai *-*
Reply


Messages In This Thread
[AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:28
Re: [AJUDA] NPC - by Shadoww5 - 21.05.2011, 20:30
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:34
Re: [AJUDA] NPC - by roberto013 - 21.05.2011, 20:53
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 20:54
Re: [AJUDA] NPC - by Power_GamerX - 21.05.2011, 21:12
Re: [AJUDA] NPC - by DartakousLien - 22.05.2011, 00:18
Re: [AJUDA] NPC - by soul taker - 22.07.2011, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)