redefinition of constant/macro
#5

Quote:
Originally Posted by Mill
Посмотреть сообщение
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")
OPSP.inc lines >
217 >
PHP код:
// SetPlayerHealth
stock SetPlayerHealthEx(playeridFloat:health)
{
//    RL_phealth[playerid]=health;
    
RL_UpdatedHealth[playerid]=true;
    return 
SetPlayerHealth(playeridhealth);
}
#define SetPlayerHealth SetPlayerHealthEx 
227>
PHP код:
// SetPlayerArmour
stock SetPlayerArmourEx(playeridFloat:armour)
{
//    RL_parmour[playerid]=armour;
    
RL_UpdatedHealth[playerid]=true;
    return 
SetPlayerArmour(playeridarmour);
}
#define SetPlayerArmour SetPlayerArmourEx 
My gamemodes line:
16519 >
PHP код:
#define ShowPlayerDialog SPD 
Код:
#define SetPlayerHealthEx(%0, %1)   RL_UpdatedHealth[%0]=true; SetPlayerHealth(%0, %1);

#define SetPlayerArmourEx(%0, %1)   RL_UpdatedHealth[%0]=true; SetPlayerArmour(%0, %1);
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: 2 Guest(s)