Sziasztok!
NPC vonattal lenne egy kis problémám, nos a következõ hibákat kapom konvertálásnál:
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(4) : warning 235: public function lacks forward declaration (symbol \"OnRecordingPlaybackEnd\")
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(5) : error 017: undefined symbol \"StartRecordingPlayback\"
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(9) : warning 235: public function lacks forward declaration (symbol \"OnNPCEnterVehicle\")
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(10) : error 017: undefined symbol \"StartRecordingPlayback\"
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(14) : warning 235: public function lacks forward declaration (symbol \"OnNPCExitVehicle\")
C:\\Users\\Kristóf\\Desktop\\few_0.3z\\npcmodes\\sftaxis.pwn(15) : error 017: undefined symbol \"StopRecordingPlayback\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
A mi az npcmodes mappában van.pwn az tökéletesen hibátlan de ami a filterscript mappába van noh ott már ki dobja ezeket az errorokat.
Itt van hozzá a script is
#define FILTERSCRIPT
#include a_samp
#define RECORDING \"FCtrain\"
#define RECORDING_TYPE 1
#include <a_npc>
#include zcmd
new veh;
new Text3D:label1[MAX_PLAYERS];
public OnFilterScriptInit() {
ConnectNPC(\"Fapados_Kolcson\", \"train_fc\");
veh = AddStaticVehicleEx(538, 202.5327, 1243.6831, 22.8516, 245.8032, 1, 1, -1);
return 1;
}
public OnFilterScriptExit() {
DestroyVehicle(veh);
return 1;
}
public OnPlayerConnect(playerid) {
if(IsPlayerNPC(playerid)) return 1;
return 1;
}
public OnPlayerDisconnect(playerid) {
Delete3DTextLabel(label1[playerid]);
return 1;
}
public OnNPCEnterVehicle ( vehicleid, seatid ) {
StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
return 0;
}
public OnPlayerSpawn(playerid) {
if(IsPlayerNPC(playerid)) {
new npcname[24];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, \"Fapados_Kolcson\", true)) {
SetPlayerSkin(playerid, 69);
SetPlayerColor(playerid, 0x32aaffff);
PutPlayerInVehicle(playerid, veh, 0);
label1[playerid] = Create3DTextLabel(\"Sofõr John\", 0xf20000AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.7);
}
return 1;
}
return 1;
}
#if RECORDING_TYPE == 1
public OnPlayerText(playerid, text[]) {
if(!strcmp(text, \"asd\")) {
StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
}
if(!strcmp(text, \"asd2\")) {
StopRecordingPlayback ( );
}
return 1;
}
/*public OnNPCEnterVehicle ( vehicleid, seatid ) {
StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
return 0;
}
public OnNPCExitVehicle() {
StopRecordingPlayback ( );
return 0;
}*/
#endif
Ha valaki tudni rá meg oldást, elõre is köszönöm.
[mod]Kitettem a megfelelõ coda tageket.[/mod]