HealthBar Problem (TextDraw)
#2

Try this:
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:hp;
    new string[255];
    GetPlayerHealth(playerid, hp);
    format(string,255,"%.0f hp",hp);
    TextDrawHideForPlayer(playerid, hpbar[playerid]);
    TextDrawSetString(hpbar[playerid],string);
    TextDrawShowForPlayer(playerid, hpbar[playerid]);
    return 1;
}
I had a similar problem before, but this fixed it.
Reply


Messages In This Thread
HealthBar Problem (TextDraw) - by odyvan - 20.12.2009, 10:13
Re: HealthBar Problem (TextDraw) - by LarzI - 20.12.2009, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)