redefinition of constant/macro (symbol "GivePlayerWeapon")
#1

Hi,

I've come across to this warning:
warning 201: redefinition of constant/macro (symbol "GivePlayerWeapon")



(Sorry, My browser wouldn't give me the code option)
Code:
__________________________________________
stock acGivePlayerWeapon(playerid, Gun, Ammo)
{
sPlayerWeapons[playerid][Gun] = true;
GivePlayerWeapon(playerid, Gun, Ammo);
}
#define GivePlayerWeapon acGivePlayerWeapon
__________________________________________

Thanks.
Reply
#2

Try:
pawn Код:
stock acGivePlayerWeapon(playerid, Gun, Ammo)
{
    sPlayerWeapons[playerid][Gun] = true;
    GivePlayerWeapon(playerid, Gun, Ammo);
}
#if defined GivePlayerWeapon
    #undef GivePlayerWeapon
#endif
#define GivePlayerWeapon acGivePlayerWeapon
For tags you wan't use:
[pawn*] [/pawn] (Whithout *).
Reply
#3

Thank you for your help and I'll keep the [pawn] tags in mind.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)