20.09.2009, 16:03
Hi, i'm not reporting on this here because i'm not sure it is a bug this is my code:
it has no problems, it's pawno i'm asking,
it saying "GetPlayerHealth(playerid, health);" is not needed (health is not needed)
look at the image:
but when
it gives me warning
(233) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
version of something: RC1-2
why it doesn't tell me "playerid, Float:health" or something, in that "CheckToolTip"?
pawn Код:
public hThisPlayerMainTimer(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(health == 90)
{
SetPlayerDrunkLevel(playerid, 1000);
} else if(health == 80)
{
SetPlayerDrunkLevel(playerid, 10000);
} else if(health == 30)
{
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerChatBubble(playerid, "\"i need backup!\"", 0xFF0000FF, 100.0, 4000);
}
return 1;
}
it saying "GetPlayerHealth(playerid, health);" is not needed (health is not needed)
look at the image:
but when
pawn Код:
public hThisPlayerMainTimer(playerid)
{
new Float:health = GetPlayerHealth(playerid);
if(health == 90)
{
SetPlayerDrunkLevel(playerid, 1000);
} else if(health == 80)
{
SetPlayerDrunkLevel(playerid, 10000);
} else if(health == 30)
{
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerChatBubble(playerid, "\"i need backup!\"", 0xFF0000FF, 100.0, 4000);
}
return 1;
}
(233) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
version of something: RC1-2
why it doesn't tell me "playerid, Float:health" or something, in that "CheckToolTip"?