error when compile
#1

this is from a tutorial this code ok.

Код:
public OnGameModeInit()
{
  print("my gamemode");
  ConnectNPC("MyFirstNPC","mynpc");
  return 1;
}
then why i get this errors when i compile??

Код:
C:\PROGRA~1\ROCKST~1\SERVER~1.3AR\GAMEMO~1\Sfinx_17.pwn(39) : error 021: symbol already defined: "OnGameModeInit"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
bytheway this is a part of my script where i put that code from that tutorial

Код:
public OnGameModeInit()
{
  print("my gamemode");
  ConnectNPC("MyFirstNPC","mynpc");
  return 1;
}
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Freeroam fun server");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // CJ Skin
	SetGravity(0.008);
	SetWorldTime(2); //Ora globului San Andreas
	SetWeather(11); // Vremea
plz i need help
Reply


Messages In This Thread
error when compile - by Sfinx_17 - 27.10.2009, 15:29
Re: error when compile - by Correlli - 27.10.2009, 15:30
Re: error when compile - by Sfinx_17 - 27.10.2009, 17:09
Re: error when compile - by Correlli - 27.10.2009, 17:10
Re: error when compile - by Sfinx_17 - 27.10.2009, 17:47
Re: error when compile - by Correlli - 27.10.2009, 17:49
Re: error when compile - by Sfinx_17 - 27.10.2009, 17:54
Re: error when compile - by thuron - 27.10.2009, 19:30
Re: error when compile - by Sfinx_17 - 28.10.2009, 00:55

Forum Jump:


Users browsing this thread: 1 Guest(s)