On compiling my script
#1

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")
Reply
#2

Show us line 338 and 357.
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)