11.05.2011, 05:22
I got errors from compiling "everything is right"
help??
Код:
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(15) : warning 235: public function lacks forward declaration (symbol "OnRecordingPlaybackEnd") D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(15) : error 017: undefined symbol "StartRecordingPlayback" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(18) : warning 235: public function lacks forward declaration (symbol "OnNPCEnterVehicle") D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(18) : error 017: undefined symbol "StartRecordingPlayback" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(19) : warning 235: public function lacks forward declaration (symbol "OnNPCExitVehicle") D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(19) : error 017: undefined symbol "StopRecordingPlayback" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(522) : error 017: undefined symbol "AnotherVehicleID" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(527) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
pawn Код:
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING); // line 15
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING); // line 18
public OnNPCExitVehicle() StopRecordingPlayback(); // line 19
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif
pawn Код:
if(IsPlayerNPC(playerid)) return 1; //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Bot01", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
return 1;
}
if(!strcmp(npcname, "Bot02", true))
{
PutPlayerInVehicle(playerid, AnotherVehicleID, 0); // 522
return 1;
}
return 1;
}
GameTextForPlayer(playerid, "~b~/cmds * ~r~/rules * ~g~/jobs", 5000, 1); // line 527