Altitudemeter Fail?
#1

Hi samp scripters.

I've got a problem with my self-made altitudemeter.

If there are more players in the server, the meter will show the altitudes of all players.

Here is my code:

Код:
public RefreshAltitudeMeter(playerid)
{
	new Float:x, Float:y, Float:z;
 	if(IsPlayerInAnyVehicle(playerid))
    {
		
		GetPlayerPos(playerid, x, y, z);

	    format(AltitudeString, sizeof(AltitudeString), "Altitude: %.2f meters", z);
	    
	    TextDrawSetString(Altitudemeter, AltitudeString);
	    TextDrawShowForPlayer(playerid, Altitudemeter);
     }
     else
     {
     	TextDrawHideForPlayer(playerid, Altitudemeter);
        return 1;
     }
	return 1;
}
Can someone help me??
Reply


Messages In This Thread
Altitudemeter Fail? - by johannetje2 - 11.04.2011, 18:07
Re: Altitudemeter Fail? - by Jefff - 11.04.2011, 18:13
Re: Altitudemeter Fail? - by johannetje2 - 11.04.2011, 18:41
Re: Altitudemeter Fail? - by woot - 11.04.2011, 18:45
Re: Altitudemeter Fail? - by WackoX - 11.04.2011, 18:45
Re: Altitudemeter Fail? - by Rivera - 11.04.2011, 18:47
Re: Altitudemeter Fail? - by johannetje2 - 11.04.2011, 18:55
Re: Altitudemeter Fail? - by Typhome - 11.04.2011, 18:59
Re: Altitudemeter Fail? - by johannetje2 - 11.04.2011, 19:10
Re: Altitudemeter Fail? - by Jefff - 11.04.2011, 20:35

Forum Jump:


Users browsing this thread: 4 Guest(s)