SA-MP Forums Archive
Alguйm ajuda a tirar essa tarja? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Alguйm ajuda a tirar essa tarja? (/showthread.php?tid=629178)



Alguйm ajuda a tirar essa tarja? - FrGd - 21.02.2017

Alguйm sabe como tirar essa tarja preta? ela apareceu quando tirei o Damage e Windows do velocнmetro.


Код:
	if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	    if (IsSpeedoVehicle(vehicleid) && !PlayerData[playerid][pDisableSpeedo])
	    {
		    static
//		        Float:fDamage,
		        Float:fSpeed,
		        Float:fVelocity[3];

//	  		GetVehicleHealth(vehicleid, fDamage);
	  		GetVehicleVelocity(vehicleid, fVelocity[0], fVelocity[1], fVelocity[2]);

//	  		fDamage = floatdiv(1000 - fDamage, 10) * 1.42999; // 1.33334;
 	  		fSpeed = floatmul(floatsqroot((fVelocity[0] * fVelocity[0]) + (fVelocity[1] * fVelocity[1]) + (fVelocity[2] * fVelocity[2])), 100.0);

//			if (fDamage < 0.0) fDamage = 0.0;
//			else if (fDamage > 100.0) fDamage = 100.0;

	        format(str, sizeof(str), "~r~GAS:~w~ %d%c", CoreVehicles[vehicleid][vehFuel], '%');
			PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][35], str);

			format(str, sizeof(str), "~r~VEL:~w~ %.0f", fSpeed);
			PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][36], str);

/*			format(str, sizeof(str), "~r~Damage:~w~ %.0f/100%%", (fDamage > 100.0) ? (100.0) : (fDamage));
			PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][37], str);

	        format(str, sizeof(str), "~r~Windows:~w~ %s", (CoreVehicles[vehicleid][vehWindowsDown]) ? ("Down") : ("Up"));
			PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][38], str);*/
		}



Re: Alguйm ajuda a tirar essa tarja? - HeisenGiromB - 21.02.2017

Deve estar dando conflito com outras text's


Re: Alguйm ajuda a tirar essa tarja? - ipsLuan - 22.02.2017

Isso й conflito de IDs de TextDraw.