12.04.2013, 18:24
Olб, boas pessoal...
Bom criei um Filter Script de NPC, mais estб dando erros,
Erros:
Script:
Help-me !
Bom criei um Filter Script de NPC, mais estб dando erros,
Erros:
Код:
C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd") C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(8) : error 017: undefined symbol "StartRecordingPlayback" C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(47) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle") C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(49) : error 017: undefined symbol "StartRecordingPlayback" C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(51) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle") C:\Users\Cliente\Desktop\BRASIL ULTIMATE WAR EM LOS SANTOS!\npcmodes\meunpc.pwn(53) : error 017: undefined symbol "StopRecordingPlayback" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
pawn Код:
#include <a_samp>
#include <a_npc>
#define RECORDING "meunpc" //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(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif*/
//new MeuPrimeiroNPCVehicle;
public OnFilterScriptInit()
{
/* print("meu filterscript");
ConnectNPC("MeuPrimeiroNPC","meunpc");
MeuPrimeiroNPCVehicle = CreateVehicle(425, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);*/
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnNPCEnterVehicle(vehicleid, seatid)
{
StartRecordingPlayback(RECORDING_TYPE, RECORDING);
}
public OnNPCExitVehicle()
{
StopRecordingPlayback();
}