npc compile problem
#10

Ok i found i was using some of the wrong sript stuff, i was using some scriptfile script or w/e but now i have the script for the gamemode and got 3 error's maby this time i can get the right info lol
Error
Quote:

C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1324) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1331) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc1.pwn(1567) : error 021: symbol already defined: "OnPlayerSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

changed script

Quote:

//ConnectNPC("Robert","mynpc");
public OnGameModeInit()
{
print("sagc1");
ConnectNPC("Robert","mynpc");
return 1;
}
new MyFirstNPCVehicle;
public OnGameModeInit()
{
print("sagc1");
ConnectNPC("Robert","mynpc");
MyFirstNPCVehicle = CreateVehicle(420,1536.6427,-841.7883,64.4755,266.3878,6,1, 5000);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Robert", true))
{
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0);
}
return 1;
}

return 1;
}

Reply


Messages In This Thread
npc compile problem - by rtydrtyd - 17.10.2009, 22:56
Re: npc compile problem - by Luka P. - 17.10.2009, 23:08
Re: npc compile problem - by rtydrtyd - 17.10.2009, 23:19
Re: npc compile problem - by rtydrtyd - 17.10.2009, 23:37
Re: npc compile problem - by Luka P. - 17.10.2009, 23:42
Re: npc compile problem - by rtydrtyd - 17.10.2009, 23:54
Re: npc compile problem - by rtydrtyd - 18.10.2009, 00:00
Re: npc compile problem - by Beaver07 - 18.10.2009, 01:50
Re: npc compile problem - by rtydrtyd - 18.10.2009, 02:35
Re: npc compile problem - by rtydrtyd - 18.10.2009, 03:34

Forum Jump:


Users browsing this thread: 2 Guest(s)