Simple Help [+rep for helpers] - 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)
+--- Thread: Simple Help [+rep for helpers] (
/showthread.php?tid=502680)
Simple Help [+rep for helpers] -
HelpYou - 25.03.2014
THE ERROR:
Код:
error 021: symbol already defined: "zcmd_OnGameModeInit"
THE LINE:
Код:
public OnGameModeInit()
{
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
return 1;
}
MY INCLUDE:
Код:
#include <a_samp>
#include <ZCMD>
Re: Simple Help [+rep for helpers] -
Bingo - 25.03.2014
There is no such thingy zcmd_OnGameModeInIt, Its
Public OnGameModeInIt()
Re: Simple Help [+rep for helpers] -
HelpYou - 25.03.2014
https://sampwiki.blast.hk/wiki/AddStaticVehicle
What I need to do ?
Re: Simple Help [+rep for helpers] -
HelpYou - 25.03.2014
Quote:
warning 235: public function lacks forward declaration (symbol "OnGameModeInIt")
|
New error...
Re: Simple Help [+rep for helpers] -
HitterHitman - 25.03.2014
Its "Init" not "InIt" OnGameModeInit
Re: Simple Help [+rep for helpers] -
HelpYou - 25.03.2014
I noticed this and changed but you will see a new problem
Quote:
symbol already defined: "zcmd_OnGameModeInit"
|
Re: Simple Help [+rep for helpers] -
HitterHitman - 25.03.2014
Search in your script "zcmd_OnGameModeInit", about where you have defined it 2 times and remove one of them
Re: Simple Help [+rep for helpers] -
HelpYou - 25.03.2014
I managed Thank you!
Re: Simple Help [+rep for helpers] -
Konstantinos - 25.03.2014
You have OnGameModeInit callback more than 1 time in your script and it gives about zcmd_OnGameModeInIt because it's hooked.