*** ERROR: redefinition of constant/macro **
#1

Error:
pawn Код:
warning 201: redefinition of constant/macro (symbol "Public:%0(%1)")
Line:
pawn Код:
public %0(%1)
Entire Script:
pawn Код:
#define Public:%0(%1)\
            forward %0(%1);\
                public %0(%1)
Reply
#2

Quote:
Originally Posted by xSkullx
Посмотреть сообщение
Error:
[pawn]
Line:
pawn Код:
public %0(%1)
Huh ? You should have something like this:

pawn Код:
Public:test(test) {}
Reply
#3

Yes i have :
pawn Код:
Public: SendVipMessage( color, const string[ ] )
{
    foreach(Player, i )
        if ( P_DATA[ i ][ Vip ] >= 1 )
            SendClientMessage( i, color, string );

    return 1;
}
Public: ReturnPosition( playerid )
{
    SetPlayerPos( playerid, Position[ playerid ][ 0 ], Position[ playerid ][ 1 ], Position[ playerid ][ 2 ] );
    SetPlayerFacingAngle( playerid, Position[ playerid ][ 3 ] );
}
Public: GodUpdate( )
{
    foreach(Player, i )
    {
        if ( P_DATA[ i ][ God ] == 1 )
            SetPlayerHealth( i, 100000 );

        if ( P_DATA[ i ][ CarGod ] == 1 && IsPlayerInAnyVehicle( i ) )
            SetVehicleHealth( GetPlayerVehicleID( i ), 10000 );
    }
}
Reply
#4

You already have "Public:" defined.
Reply
#5

isnt it easier to forward and then use the normal public
pawn Код:
forward  SendVipMessage(color, const string[ ]);
public SendVipMessage(color, const string[ ])
{
    foreach(Player, i )
        if ( P_DATA[ i ][ Vip ] >= 1 )
            SendClientMessage( i, color, string );

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)