Error !
#1

Error:
Quote:

warning 202: number of arguments does not match definition

pawn Код:
if(CHECK_HEALTH >= MAX_HEALTH)
pawn Код:
if(CHECK_ARMOUR >= MAX_ARMOUR)
CHECK_HEALTH=GetPlayerHealth
CHECK_ARMOUR=GetPlayerArmour
MAX_HEALTH=100.0
MAX_ARMOUR=100.0
Reply
#2

GetPlayerHealth and GetPlayerArmour have 2 arguments.
pawn Код:
#define CHECK_HEALTH(%0,%1) GetPlayerHealth(%0, %1)
#define CHECK_ARMOUR(%0,%1) GetPlayerArmour(%0,%1)
 new Float:Health;
if(CHECK_HEALTH(playerid, Health) >= MAX_HEALTH)

//
new Float:Armour;
if(CHECK_ARMOUR(playerid, Armour) >= MAX_ARMOUR)
Reply
#3

FIXED ! Thx bro +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)