HP Textdraw Problem
#1

Hey guys,

i have a problem with my TextDraw, i would show the HP for the Player... here is my
Problem. The Problem is, that the number is not the Original Number of the Player and it bugs.

Code:

Код:
new Text:HP1[MAX_PLAYERS];

for(new i=0; i<MAX_PLAYERS; i++)
{
		HP1[i] = TextDrawCreate(558.000000,67.000000,"100%");
		TextDrawSetOutline(HP1[i],1);
		TextDrawLetterSize(HP1[i],0.2000000,0.800000);
		TextDrawAlignment(HP1[i],0);
		TextDrawSetShadow(HP1[i],0);
		TextDrawSetProportional(HP1[i],1);
}

OnPlayerUpdate...

for(new i=0; i<MAX_PLAYERS; i++)
{
  		new Float: hp;
		GetPlayerHealth(i, hp);
		format(mstr,sizeof(mstr),"% .0f hp",hp);
		TextDrawSetString(HP1[i],mstr);
}
Sri for my bad English im From Germany
Reply


Messages In This Thread
HP Textdraw Problem - by K3VIN - 04.05.2013, 20:36
Re: HP Textdraw Problem - by XStormiest - 04.05.2013, 20:47
AW: HP Textdraw Problem - by K3VIN - 04.05.2013, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)