SA-MP Forums Archive
Error ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error ! (/showthread.php?tid=441962)



Error ! - Giroud12 - 05.06.2013

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



Respuesta: Error ! - JustBored - 05.06.2013

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)



Re: Error ! - Giroud12 - 05.06.2013

FIXED ! Thx bro +rep