Symbol already defined: "Audio_OnPlayerDisconnect"
#1

Sorry for asking to much xD
Can anyone fix this error?
Код:
Gamemode Line 12199: symbol already defined: "Audio_OnPlayerDisconnect"
PHP код:
public OnPlayerDisconnect(playeridreason
My audio include:

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    if (!
IsPlayerNPC(playerid))
    {
        
Audio_RemovePlayer(playerid);
    }
    if (
Audio_g_OPDC)
    {
        return 
CallLocalFunction("Audio_OnPlayerDisconnect""dd"playeridreason);
    }
    return 
1;
}
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Audio_OnPlayerDisconnect
forward Audio_OnPlayerDisconnect(playeridreason); 
Reply
#2

remove

#define OnPlayerDisconnect Audio_OnPlayerDisconnect
Reply
#3

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
remove

#define OnPlayerDisconnect Audio_OnPlayerDisconnect
Haha XD And when I tried it came up like this
Gamemodes a.pwn Error Line: symbol already defined: "OnPlayerDisconnect"
Includes *******_stream.inc Error Line: symbol already defined: "OnPlayerDisconnect"
Reply
#4

Maybe look in both gamemodes?
in your main one
Audio_OnPlayerDisconnect
Reply
#5

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Maybe look in both gamemodes?
in your main one
Audio_OnPlayerDisconnect
In my gamemode there's only one OnPlayerDisconnect, I'm very confused
Reply
#6

I think you need to remove Audio_OnPlayerDisconnenect from
#define OnPlayerDisconnect
Reply
#7

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
I think you need to remove Audio_OnPlayerDisconnenect from
#define OnPlayerDisconnect
Okay i have fixed all the error in includes, now just only one error in the Gamemode
Код:
symbol already defined: "OnPlayerDisconnect"
Now how can i fix that xD
Reply
#8

You put your code as INC file?
cause seems like you have both gamemode

Use YSI.
Reply
#9

Do not modify ALS code, re-download the includes you edited (audio and stream) and post your includes here. Another include does not hook and just gives the name of the previous include that uses OnPlayerDisconnect.
Reply
#10

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
You put your code as INC file?
cause seems like you have both gamemode

Use YSI.
Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Do not modify ALS code, re-download the includes you edited (audio and stream) and post your includes here. Another include does not hook and just gives the name of the previous include that uses OnPlayerDisconnect.
Okay now, i have fixed the errors.. But, instead back to the warning as in the previous thread. like this
Код:
public function lacks forward declaration (symbol "stream_OnPlayerDisconnect")
stream_OnPlayerDisconnect is from *******_stream include
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)