Problem with GameModeInit?
#1

Yeh i am having a problem with the GameModeInit...

warning 235: public function lacks forward declaration (symbol "GameModeInit")


Код:
public GameModeInit()
{

	AddStaticVehicle(419,997.3894,-929.4922,41.9768,99.4327,47,76, 76);
	
	return 1;
	
}
Is this correct if not help me please.
Reply
#2

the right public your looking to use is this

Код:
public OnGameModeInit()
{
  AddStaticVehicle(419,997.3894,-929.4922,41.9768,99.4327,47,76, 76);
  return 1;
}
Reply
#3

Quote:
Originally Posted by Beaver07
the right public your looking to use is this

Код:
public OnGameModeInit()
{
  AddStaticVehicle(419,997.3894,-929.4922,41.9768,99.4327,47,76, 76);
  return 1;
}
Thank you for the help but it is saying (44452) : error 021: symbol already defined: "OnGameModeInit"
Reply
#4

then instead of making a new public use the one which is already in existence

use CTRL+F and search OnGameModeInit and place your addstaticvehicle in there
Reply
#5

Thanks that worked

But now i seem to be having a problem with

error 021: symbol already defined: "NameTimer"

i tryed doing the CTRL + F and i found the line but i dont know what to do next.
Reply
#6

you have 2
Код:
new NameTimer;
's just delete the one that is not needed
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)