21.05.2011, 20:28
ai pessoal segui o tuto sertin aki do forum mais deu esses 5 erros e nao consigo resolver:
script:
auguem ajuda ai *-*
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.
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;
}