redefinition of constant/macro
#9

Quote:
Originally Posted by ForCop
Посмотреть сообщение
change them:
Код:
stock SetPlayerHealthEx(playerid, Float:health) 
{ 
//    RL_phealth[playerid]=health; 
    RL_UpdatedHealth[playerid]=true; 
    return SetPlayerHealth(playerid, health); 
} 
#define SetPlayerHealth SetPlayerHealthEx  

// SetPlayerArmour 
stock SetPlayerArmourEx(playerid, Float:armour) 
{ 
//    RL_parmour[playerid]=armour; 
    RL_UpdatedHealth[playerid]=true; 
    return SetPlayerArmour(playerid, armour); 
} 

#define SetPlayerArmour SetPlayerArmourEx
on
Код:
#define SetPlayerHealthEx(%0, %1)   RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1);

#define SetPlayerArmourEx(%0, %1)   RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1);
ok it worked now. but how do i fix 16519 warning now?
Reply


Messages In This Thread
redefinition of constant/macro - by Mill - 06.04.2018, 15:31
Re: redefinition of constant/macro - by Drak03 - 06.04.2018, 15:51
Re: redefinition of constant/macro - by Drak03 - 06.04.2018, 15:54
Re: redefinition of constant/macro - by Mill - 06.04.2018, 15:57
Re: redefinition of constant/macro - by ForCop - 06.04.2018, 16:01
Re: redefinition of constant/macro - by Mill - 06.04.2018, 16:02
Re: redefinition of constant/macro - by ForCop - 06.04.2018, 16:04
Re: redefinition of constant/macro - by CutX - 06.04.2018, 16:05
Re: redefinition of constant/macro - by Mill - 06.04.2018, 16:17
Re: redefinition of constant/macro - by ForCop - 06.04.2018, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)