C:\Users\Lietotājs\Desktop\TACTIC.ITP\pawno\include\OPSP.inc(217) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth") C:\Users\Lietotājs\Desktop\TACTIC.ITP\pawno\include\OPSP.inc(227) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour") C:\Users\Lietotājs\Desktop\TACTIC.ITP\gamemodes\tactic.pwn(16519) : warning 201: redefinition of constant/macro (symbol "ShowPlayerDialog")
// SetPlayerHealth
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
#define ShowPlayerDialog SPD
With the thing ur doing, you get this:
SetPlayerHealth return SetPlayerHealth, so your stock is = or the same thing in comparision with the define |
Hello people from samp community.
I have a few of warnings, which i really dont want there in my list. Anyone can help me? Warnings: Код HTML:
C:\Users\Lietotājs\Desktop\TACTIC.ITP\pawno\include\OPSP.inc(217) : warning 201: redefinition of constant/macro (symbol "SetPlayerHealth") C:\Users\Lietotājs\Desktop\TACTIC.ITP\pawno\include\OPSP.inc(227) : warning 201: redefinition of constant/macro (symbol "SetPlayerArmour") C:\Users\Lietotājs\Desktop\TACTIC.ITP\gamemodes\tactic.pwn(16519) : warning 201: redefinition of constant/macro (symbol "ShowPlayerDialog") 217 > PHP код:
PHP код:
16519 > PHP код:
|
#define SetPlayerHealthEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1); #define SetPlayerArmourEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1);
Код:
#define SetPlayerHealthEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1); #define SetPlayerArmourEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1); |
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
#define SetPlayerHealthEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1); #define SetPlayerArmourEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1);
#include <YSI\y_als>
stock SetPlayerHealthEx(playerid, Float:health)
{
//do your stuff here...
RL_UpdatedHealth[playerid]=true;
return SetPlayerHealth(playerid, health);
}
#if defined _ALS_SetPlayerHealth
#undef SetPlayerHealth
#else
#define _ALS_SetPlayerHealth
#endif
#define SetPlayerHealth SetPlayerHealthEx
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 Код:
#define SetPlayerHealthEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1); #define SetPlayerArmourEx(%0, %1) RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1); |