error 017: undefined symbol "MeuPrimeiroNPCVehicle" error 017: undefined symbol "MeuPrimeiroNPCVehicle" |
MeuPrimeiroNPCVehicle = CreateVehicle(431,0.0,0.0,5.0,0.0,3,3,5000);
public OnGameModeInit ConnectNPC("MeuPrimeiroNPC","Bus1"); MeuPrimeiroNPCVehicle = CreateVehicle(431,0.0,0.0,5.0,0.0,3,3,5000);
public OnPlayerSpawn if(IsPlayerNPC(playerid)) return 1; { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname,sizeof(npcname)); if(!strcmp(npcname,"Bus1NPC", true)) { PutPlayerInVehicle(playerid, MeuPrimeiroNPCVehicle, 0); } return 1; }
#define RECORDING "Bus1" #define RECORDING_TYPE 1 #include <a_npc> 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;