npc compile problem
#6

Eh yeah that dident work now i get
Quote:

C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1330) : error 055: start of function body without function header
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1333) : error 010: invalid function or declaration
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1337) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1573) : error 021: symbol already defined: "OnPlayerSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Quote:

{
print("scriptfiles");
ConnectNPC("ROBERT","mynpc");
return 1;
}
new MyFirstNPCVehicle; //Global variable!
public OnGameModeInit()
{
print("SAGC");
ConnectNPC("ROBERT","mynpc");
MyFirstNPCVehicle = CreateVehicle(420,1536.6427,-841.7883,64.4755,266.3878,6,1, 5000);
return 1;
}
and if i take

and i i take
Quote:

{
print("scriptfiles");
ConnectNPC("ROBERT","mynpc");
return 1;
}

out i get
Quote:

C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1329) : error 054: unmatched closing brace ("}")
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(1332) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\john\Desktop\Desktop files\0.3\gamemodes\sagc.pwn(156 : error 021: symbol already defined: "OnPlayerSpawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

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: 3 Guest(s)