04.05.2013, 20:36
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:
Sri for my bad English im From Germany
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); }