On compiling my script - 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: On compiling my script (
/showthread.php?tid=331163)
On compiling my script -
captainjohn - 03.04.2012
I get 2 warnings on compiling.
How do I get rid of these?
Код:
C:\Users\John\Desktop\Script\pawno\include\streamer.inc(338) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterCheckpoint")
C:\Users\John\Desktop\Script\pawno\include\streamer.inc(357) : warning 201: redefinition of constant/macro (symbol "OnPlayerLeaveCheckpoint")
Re: On compiling my script -
Georgi166 - 03.04.2012
Show us line 338 and 357.
Re: On compiling my script -
Boooth - 03.04.2012
You are using an include that already have these two functions in, so remove them either from the plugin or the stock or public in you script.
Re: On compiling my script -
captainjohn - 03.04.2012
Quote:
Originally Posted by Georgi166
Show us line 338 and 357.
|
Well as it says it's coming from Streamer.inc.
Here is lines 338 - 357 (Streamer.inc)
pawn Код:
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP
forward Streamer_OnPlayerEnterCP(playerid);
public OnPlayerLeaveCheckpoint(playerid)
{
Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1);
if (Streamer_g_OPLC)
{
return CallLocalFunction("Streamer_OnPlayerLeaveCP", "d", playerid);
}
return 1;
}
#if defined _ALS_OnPlayerLeaveCP
#undef OnPlayerLeaveCheckpoint
#else
#define _ALS_OnPlayerLeaveCP
#endif
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP
Shall I just delete
pawn Код:
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP
and
pawn Код:
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP
From streamer?