Help - 1 error - 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: Help - 1 error (
/showthread.php?tid=200152)
Help - 1 error -
Se - 17.12.2010
Hello,
I just added an include (Desktop.inc, from the german SA:MP Forum) in my script and after it, I get an error.
This error:
Код:
C:\Users\Privat\Desktop\Reallife.pwn(9244) : error 021: symbol already defined: "JB_OnGameModeInit"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line 9243-9244 in my gamemode:
Код:
public OnGameModeInit()
{
Before I added this include, I had no errors or warnings.
The lines, which maybe cause the error:
Desktop.inc:
Код:
forward Desk_SecondTimer();
forward Desk_OnPlayerUpdate(playerid);
forward Desk_OnGameModeInit();
#define Desk_OnPlayerUpdate OnPlayerUpdate
#define Desk_OnGameModeInit OnGameModeInit
Junkbuster.inc (I had this include since a long time in my script):
Код:
forward JB_OnGameModeInit();
//OnGameModeInit
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit JB_OnGameModeInit
Can anyone help me?
Re: Help - 1 error -
akis_tze - 17.12.2010
open Desktop.inc search for JB_OnGameModeInit and delete it (Keep a Backup)
Re: Help - 1 error -
Se - 17.12.2010
In Desktop.inc isn't anywhere JB_OnGameModeInit...
Only in Junkbuster.inc
Re: Help - 1 error -
Se - 17.12.2010
/push
Re: Help - 1 error -
Dj_maryo1993 - 17.12.2010
remove
forward JB_OnGameModeInit(); from your gamemode (not your include) ,that is already defined in the junkbuster.
Re: Help - 1 error -
Se - 17.12.2010
Quote:
Originally Posted by Se
In Desktop.inc isn't anywhere JB_OnGameModeInit...
Only in Junkbuster.inc
|
JB_OnGameModeInit is only in the Junkbuster.inc, not in the gamemode, not in the Desktop.inc.
Re: Help - 1 error -
Se - 17.12.2010
/push