Help - 1 error
#1

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?
Reply
#2

open Desktop.inc search for JB_OnGameModeInit and delete it (Keep a Backup)
Reply
#3

In Desktop.inc isn't anywhere JB_OnGameModeInit...
Only in Junkbuster.inc
Reply
#4

/push
Reply
#5

remove forward JB_OnGameModeInit(); from your gamemode (not your include) ,that is already defined in the junkbuster.
Reply
#6

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.
Reply
#7

/push
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)