GetPlayerHealth - pawno bug?
#1

Hi, i'm not reporting on this here because i'm not sure it is a bug this is my code:
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 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

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;
}
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"?
Reply


Messages In This Thread
GetPlayerHealth - pawno bug? - by Daem. - 20.09.2009, 16:03
Re: GetPlayerHealth - pawno bug? - by Calgon - 20.09.2009, 16:05
Re: GetPlayerHealth - pawno bug? - by Sergei - 20.09.2009, 16:06
Re: GetPlayerHealth - pawno bug? - by Daem. - 20.09.2009, 16:07
Re: GetPlayerHealth - pawno bug? - by Sergei - 20.09.2009, 16:10
Re: GetPlayerHealth - pawno bug? - by Calgon - 20.09.2009, 16:11
Re: GetPlayerHealth - pawno bug? - by Daem. - 20.09.2009, 16:13
Re: GetPlayerHealth - pawno bug? - by Calgon - 20.09.2009, 16:26
Re: GetPlayerHealth - pawno bug? - by Calgon - 20.09.2009, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)