Alguйm ajuda a tirar essa tarja?
#1

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);*/
		}
Reply
#2

Deve estar dando conflito com outras text's
Reply
#3

Isso й conflito de IDs de TextDraw.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)