[Ajuda] Ajuda TextDraw sumiu...
#1

Boa Noite pessoal da FORUM SA-MP estou aqui para pedir a ajuda de voces pois minha textdraw de velocimetro sumiu n aparece mais poderiam me ajudar ? Devo postar qual codigo ? public velocimetro ?
Reply
#2

Posta tudo do velocimetro.. da textdraw
Reply
#3

Segui codigos vleocimetro


Код:
forward Velociimetro(playerid);

Na public Other Time

    Velociimetro();

OnGameModeInit

SetTimer("Velociimetro", 1000, 1);

public Velociimetro(playerid)
{
	new Float:Speedo_HP;
	new string[256];
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	    if(gPlayerLogged[i] == 1 && IsPlayerInAnyVehicle(i))
		{
		    new Float:PosX, Float:PosY, Float:PosZ;
		    GetPlayerPos(i, PosX, PosY, PosZ);
		   	new vehicle = GetPlayerVehicleID(i);
			GetVehicleHealth(vehicle, Speedo_HP);
			new txt[128];
			if(Speedo_HP >= 990){format(txt, sizeof(txt),"~b~------------");}
			else if(Speedo_HP >= 959){format(txt, sizeof(txt),"~b~-----------~r~~h~-");}
  			else if(Speedo_HP >= 900){format(txt, sizeof(txt),"~b~----------~r~~h~--");}
  			else if(Speedo_HP >= 860){format(txt, sizeof(txt),"~b~---------~r~~h~---");}
  			else if(Speedo_HP >= 820){format(txt, sizeof(txt),"~b~-------~r~~h~---");}
  			else if(Speedo_HP >= 750){format(txt, sizeof(txt),"~b~------~r~~h~---");}
   			else if(Speedo_HP >= 650){format(txt, sizeof(txt),"~b~---~r~~h~---");}
   			else if(Speedo_HP >= 560){format(txt, sizeof(txt),"~b~-~r~~h~----");}
   			else if(Speedo_HP >= 460){format(txt, sizeof(txt),"~r~~h~-----");}
			else if(Speedo_HP >= 350){format(txt, sizeof(txt),"~r~~h~----");}
			else if(Speedo_HP >= 250){format(txt, sizeof(txt),"~r~~h~---");}
 			else if(Speedo_HP >= 245){format(txt, sizeof(txt),"~r~~h~--");}
 			else if(Speedo_HP >= 241){format(txt, sizeof(txt),"~r~~h~-");}
			else if(Speedo_HP >= 2){format(txt, sizeof(txt),"~r~sai ~y~sai ~r~sai");}
            format(gstring, sizeof(gstring), "~g~%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
			TextDrawSetString(nomeveiculo[i], string);
			format(string,sizeof(string),"~g~~h~~h~Velocidade:~w~ %d KM/h~n~~g~~h~~h~Combustivel: ~W~%d%%~n~~g~~h~~h~Lataria: ~r~%s~n~~g~~h~~h~Local:~w~ %s~n~~g~~h~~h~Altitude:~w~ %.1f",
			GetSpeedKM(i), Gas[vehicle],txt, ReturnPlayerZone(i), PosZ);
			TextDrawSetString(Speed[i], string);
			if(TextShow[i] == false)
			{
				TextDrawShowForPlayer(i, Speed[i]);
				TextDrawShowForPlayer(i, nomeveiculo[i]);
				TextShow[i] = true;
			}
		}
  		else
		{
  			if(TextShow[i] == true)
		   	{
			   	TextDrawHideForPlayer(i, Speed[i]);
			   	TextDrawHideForPlayer(i, nomeveiculo[i]);
				TextShow[i] = false;
			}
		}
	}
}
Reply
#4

Ajuda ...
Reply
#5

Tente isto, Nгo garanto que irб funcionar, sou novato em pawn. mas vamos lб!
pawn Код:
//On Gamemode Init();
TextDrawShowForPlayer(i, Speed[i]);
TextDrawShowForPlayer(i, nomeveiculo[i]);

//Pode Tentar Colocar, Essas Duas Funзхes no:
//---------------------------------------------------------//
//On PlayerConnect();
TextDrawShowForPlayer(i, Speed[i]);
TextDrawShowForPlayer(i, nomeveiculo[i]);
Se nгo der, Tente Retirar o "(i, e os [i]);"
Reply
#6

Eu quero umas aulas gratuitas, quero ficar Fodao igual vcs um dia HASUHSUAAHUSAU
#Um #Pouco #De #Trolagem
Reply
#7

Fica fodгo, vendo isso -> http://comecarprogramar.tk/
DHUASHDUASHDUASHDUSAHDUASHDSAUHDSAUDHASUHDASUH
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)