11.08.2015, 14:18
Hello, i make a sistem to count how meters it's remaning until player reached destination, but i have a problem, the meters not count down if i'm going to checkpoint ! here is the pawno code
TextDraw (dosen't need...)
What is wrong


PHP код:
if(listitem == 0)
{
new Distance[126];
new Float:fDistance = GetPlayerDistanceFromPoint(playerid,237.9 , 115.6 , 1010.2 ); // example
format(Distance,sizeof(Distance),"Meters remaining: %0.2f ",fDistance);
TextDrawSetString(tDistance,Distance);
TextDrawShowForPlayer(playerid,tDistance);
}
PHP код:
tDistance = TextDrawCreate(145.625000, 428.583251, "");
TextDrawLetterSize(tDistance, 0.369000, 1.250000);
TextDrawAlignment(tDistance, 1);
TextDrawColor(tDistance, -13057);
TextDrawSetShadow(tDistance, 0);
TextDrawSetOutline(tDistance, 0);
TextDrawBackgroundColor(tDistance, 255);
TextDrawFont(tDistance, 1);
TextDrawSetProportional(tDistance, 1);
TextDrawSetShadow(tDistance, 0);
What is wrong



