Problem with meters system
#1

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
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);
                
            } 
TextDraw (dosen't need...)
PHP код:
tDistance TextDrawCreate(145.625000428.583251"");
    
TextDrawLetterSize(tDistance0.3690001.250000);
    
TextDrawAlignment(tDistance1);
    
TextDrawColor(tDistance, -13057);
    
TextDrawSetShadow(tDistance0);
    
TextDrawSetOutline(tDistance0);
    
TextDrawBackgroundColor(tDistance255);
    
TextDrawFont(tDistance1);
    
TextDrawSetProportional(tDistance1);
    
TextDrawSetShadow(tDistance0); 

What is wrong
Reply


Messages In This Thread
Problem with meters system - by Sn4ke2 - 11.08.2015, 14:18
Re: Problem with meters system - by fordawinzz - 11.08.2015, 14:36
Re: Problem with meters system - by Sn4ke2 - 11.08.2015, 14:41
Re: Problem with meters system - by fordawinzz - 11.08.2015, 15:28
Re: Problem with meters system - by Sn4ke2 - 11.08.2015, 17:08
Re: Problem with meters system - by MarvinPWN - 11.08.2015, 17:27

Forum Jump:


Users browsing this thread: 3 Guest(s)