Problem with GameModeInit? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with GameModeInit? (
/showthread.php?tid=139697)
Problem with GameModeInit? -
Luis- - 05.04.2010
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.
Re: Problem with GameModeInit? -
Beaver07 - 05.04.2010
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;
}
Re: Problem with GameModeInit? -
Luis- - 05.04.2010
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"
Re: Problem with GameModeInit? -
Beaver07 - 05.04.2010
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
Re: Problem with GameModeInit? -
Luis- - 05.04.2010
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.
Re: Problem with GameModeInit? -
Beaver07 - 05.04.2010
you have 2
's just delete the one that is not needed