cs all
Már nagyon elegem van minde oldalt megnéztem ,hogy csinájak npc-t még a szövegeket is másoltam nehogy hiba legyen de valamiér 5 hiba van benne megtudnátok mondani mi a hiba?
hibák:C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(23) : error 001: expected token: \";\", but found \"return\"
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(26) : warning 235: public function lacks forward declaration (symbol \"OnFilterScriptInit\")
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(29) : error 017: undefined symbol \"ConnectNPC\"
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(30) : error 017: undefined symbol \"CreateVehicle\"
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(33) : warning 235: public function lacks forward declaration (symbol \"OnPlayerSpawn\")
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(35) : error 017: undefined symbol \"IsPlayerNPC\"
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(41) : error 017: undefined symbol \"PutPlayerInVehicle\"
C:\\Documents and Settings\\User\\Asztal\\szero\\npcmodes\\tank.pwn(30) : warning 204: symbol is assigned a value that is never used: \"tankVehicle\"
#define RECORDING \"tank\"
#define RECORDING_TYPE 1
#include <a_npc>
new tankVehicle;
public OnRecordingPlaybackEnd ()
{
StartRecordingPlayback (RECORDING_TYPE, RECORDING);
return 0;
}
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle (vehicleid, seatid)
{
StartRecordingPlayback (RECORDING_TYPE, RECORDING);
return 0;
}
public OnNPCExitVehicle ()
{
StopRecordingPlayback ()
return 0;
}
public OnFilterScriptInit ()
{
print ( \"my filterscript\" );
ConnectNPC ( \"tank\", \"tank\" );
tankVehicle = CreateVehicle ( 400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000 );
return 1;
}
public OnPlayerSpawn (playerid)
{
if ( IsPlayerNPC ( playerid ) )
{
new npcname [ MAX_PLAYER_NAME ];
GetPlayerName ( playerid, npcname, sizeof ( npcname ) );
if ( !strcmp ( npcname, \"tank\", true ) )
{
PutPlayerInVehicle ( playerid, tankVehicle, 432 );
}
return 1;
}
return 1;
}
#endif