[Help] Speedometer TextDraw Disappearing
#1

Hello, after about 24 hours of running server Speedo TD Disappear and gone until next restart

i heard that there is limit for textdraw so every time some one enters 5+ TextDraws creating with that function?

This is mine public for that

Код:
public SpeedoMetar()
{
    foreach (Player, i)
	{
	    new playerState = GetPlayerState(i);
		if(playerState == PLAYER_STATE_DRIVER)
		{
			new string[16];
			new Float:speed_x,Float:speed_y,Float:speed_z,Float:FloatBrzine;
			new FFinalnaBrzina;
			new vozilospeed = GetPlayerVehicleID(i);
			new Float:L_VehHealth;
			TextDrawShowForPlayer(i, TextdrawB0[i]);
			TextDrawShowForPlayer(i, TextdrawB2[i]);
			TextDrawShowForPlayer(i, TextdrawB3[i]);
			TextDrawShowForPlayer(i, TextdrawB4[i]);
			TextDrawShowForPlayer(i, TextdrawB5[i]);
			GetVehicleVelocity(vozilospeed,speed_x,speed_y,speed_z);
			FloatBrzine = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*183.666667;
			FFinalnaBrzina = floatround(FloatBrzine,floatround_round);
			format(string,sizeof(string), "%d",FFinalnaBrzina);
			TextDrawSetString(TextdrawB2[i], string);
			GetVehicleHealth(GetPlayerVehicleID(i), L_VehHealth);
			if(L_VehHealth <= 1000)
			{
				TextDrawColor(TextdrawB5[i], 0x00ff00ff);
				TextDrawColor(TextdrawB4[i], 0x00000000);
				TextDrawColor(TextdrawB3[i], 0x00000000);
			}
			if(L_VehHealth <= 700)
			{
				TextDrawColor(TextdrawB4[i], 0xffff00ff);
				TextDrawColor(TextdrawB5[i], 0x00000000);
				TextDrawColor(TextdrawB3[i], 0x00000000);
			}
			if(L_VehHealth <= 450)
			{
				TextDrawColor(TextdrawB3[i], 0xff0000ff);
				TextDrawColor(TextdrawB4[i], 0x00000000);
				TextDrawColor(TextdrawB5[i], 0x00000000);
			}
  		}
  		else
  		{
  		TextDrawHideForPlayer(i, TextdrawB0[i]);
		TextDrawHideForPlayer(i, TextdrawB2[i]);
		TextDrawHideForPlayer(i, TextdrawB3[i]);
		TextDrawHideForPlayer(i, TextdrawB4[i]);
		TextDrawHideForPlayer(i, TextdrawB5[i]);
		}
	}
}
Reply


Messages In This Thread
[Help] Speedometer TextDraw Disappearing - by David (Sabljak) - 03.11.2013, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)