Brzinometar

Započeo yeet, April 30, 2021, 22:40:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Nepoakzuje textdraw
Deo skripte:
//

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
//

Navodno je do nekog state-a ali neznam kojeg pisite sta vam treba pa cu poslat -.-
Poslednja Izmena: Maj 02, 2021, 14:46:03 POSLE PODNE od M Ө M Σ N Z I
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.


Citat: DavidScript poslato April 30, 2021, 22:41:36 POSLE PODNE
Jesi li ga definisao?

stvarno mislis da sam toliko glup ?
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

Citat: yeet poslato April 30, 2021, 22:43:14 POSLE PODNE
stvarno mislis da sam toliko glup ?
hahaha okle znam, slikaj taj deo koda onda da proverimo
Graphic Designer - Contact info
[email protected]
https://markovicdesigns.carrd.co/

new PlayerText:BrzinomerTD[MAX_PLAYERS][22];


public OnPlayerDisconnect( playerid, reason )
{
//------------------------------------------------------------------------------
	if(fexist(Igraci(playerid)))
	{
	    SacuvajIgraca(playerid);
	}
	
	if( GetPVarInt( playerid, "CuffTimerCalled") == 1 )
	{
	    KillTimer( TazerTimer[ playerid ] );
	}
//------------------------------------------------------------------------------
    if(AdminVozilo[playerid] != -1) DestroyVehicle(AdminVozilo[playerid]), AdminVozilo[playerid] = -1;
//------------------------------------------------------------------------------
	for( new i = 0; i < 22; i ++) {
        PlayerTextDrawDestroy( playerid, BrzinomerTD[ playerid ][ i ] );
		BrzinomerTD[ playerid ][ i ] = PlayerText:INVALID_TEXT_DRAW;
	}
//-----------


if (newstate == PLAYER_STATE_DRIVER)
	{
		new vehicle = GetPlayerVehicleID(playerid);
		GetVehicleParamsEx(vehicle, engine, svijetla, alarm, vozvrata, bonnet, boot, objective);
		{
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 11 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
        PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 11 ] );

        PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 20 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
        PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 20 ] );

        new stringic1[ 30 ];
        format( stringic1, sizeof( stringic1 ), "%s", GetVehicleNameEx( GetVehicleModel( GetPlayerVehicleID( playerid ) ) ) );
        PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][18], stringic1 );
	}



for( new i = 0; i < 22; i ++)
		{
  			PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ i ] );
		}
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 18 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
	    PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 18 ] );
	}
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		for( new i = 0; i < 22; i ++)
		{
			PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
		}
	}



public OnPlayerExitVehicle(playerid, vehicleid)
{
	for( new i = 0; i < 22; i ++)
	{
		PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
	}
	return 1;
}



public OnPlayerUpdate(playerid)
{
    if(IsPlayerConnected(playerid))
    {
          new Float:health;
          GetPlayerHealth(playerid,health);
          if (health < 25.0)
          {
              SetPlayerDrunkLevel(playerid,3000);
          }
          else
          {
              SetPlayerDrunkLevel(playerid,0);
          }
	}
    if( IsPlayerInAnyVehicle( playerid )&& GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
	{
	    new vehicle = GetPlayerVehicleID( playerid );

		new string[ 30 ];
        format( string, sizeof( string ), "~r~", GetSpeed( playerid ) );
        PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][ 13 ], string );
        new string12[ 30 ];
        format( string12, sizeof( string ), "~r~", GetSpeed( playerid ) );
        PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][ 13 ], string12 );
        new stringic[ 30 ];
        format( stringic, sizeof( stringic ), "~r~%dL", Gorivo[ vehicle ] );
        PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][ 19 ], stringic );
        new stringic1[ 30 ];
        format( stringic1, sizeof( stringic1 ), "%s", GetVehicleNameEx( GetVehicleModel( GetPlayerVehicleID( playerid ) ) ) );
        PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][18], stringic1 );
	}
	
	if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) {

        for( new i = 0; i < sizeof( Roadblocks ); i++ ) {

			if( IsPlayerInRangeOfPoint( playerid, 3.0, Roadblocks[ i ][ sX ], Roadblocks[ i ][ sY ], Roadblocks[ i ][ sZ ] ) ) {

				if( Roadblocks[ i ][ sCreated ] == 1 && Roadblocks[ i ][ sSpike ] ) {

                    new panels, tires, doors, lights;
                    new carid = GetPlayerVehicleID( playerid );
					GetVehicleDamageStatus( carid, panels, doors, lights, tires );
					UpdateVehicleDamageStatus( carid, panels, doors, lights, 15 );
					return 0;
				}
			}
		}
    }
    return 1;
}


if(PRESSED(KEY_SUBMISSION))
	{
	    if (IsPlayerInAnyVehicle(playerid))
	    {
			new vehicle = GetPlayerVehicleID(playerid);
			if(AkoJeBajs(GetVehicleModel(GetPlayerVehicleID(playerid)))) return ERROR(playerid, "Ne mozete upaliti svijetla na biciklu");
			GetVehicleParamsEx(vehicle, engine, svijetla, alarm, vozvrata, bonnet, boot, objective);
	    	if (!svijetla)
			{
				SetVehicleParamsEx(vehicle, engine, 1, alarm, vozvrata, bonnet, boot, objective);
				PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][21], "~g~Upaljena" );
			}
			else
			{
				SetVehicleParamsEx(vehicle, engine, 0, alarm, vozvrata, bonnet, boot, objective);
				PlayerTextDrawSetString( playerid, BrzinomerTD[ playerid ][21], "~r~Ugasena" );
			}
		}
     }




ako jos sta treba reci samo
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

jel me zajebavas da ti samo tako registrovao TD???

moras posebno svaki
Graphic Designer - Contact info
[email protected]
https://markovicdesigns.carrd.co/

Citat: DavidScript poslato Maj 01, 2021, 12:29:14 POSLE PODNE
jel me zajebavas da ti samo tako registrovao TD???

moras posebno svaki
Sta registrovao TD? Kakva registracija bog te mazo, nije auto da se registruje...
Ako mislis na to da prikaze/sakrije onda je to u loop, i trebalo bi da je ok


for( new i = 0; i < 22; i ++)
		{
  			PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ i ] );
		}
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 18 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
	    PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 18 ] );
	}
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		for( new i = 0; i < 22; i ++)
		{
			PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
		}
	}



u
        if (newstate == PLAYER_STATE_DRIVER) {



        for( new i = 0; i < 22; i ++)
		{
  			PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ i ] );
		}
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 18 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
	    PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 18 ] );
	}
        }
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		for( new i = 0; i < 22; i ++)
		{
			PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
		}
	}





dalje
public OnPlayerExitVehicle(playerid, vehicleid)
{
	for( new i = 0; i < 22; i ++)
	{
		PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
	}
	return 1;
}

ovo obrisi jer je nepotrebno, posto u OnPlayerStateChange vec sakrivas tdove
Poslednja Izmena: Maj 01, 2021, 14:35:25 POSLE PODNE od M Ө M Σ N Z I

Citat: __vedran.xyz77 poslato Maj 01, 2021, 12:42:25 POSLE PODNE
for( new i = 0; i < 22; i ++)
		{
  			PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ i ] );
		}
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 18 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
	    PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 18 ] );
	}
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		for( new i = 0; i < 22; i ++)
		{
			PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
		}
	}



u
        if (newstate == PLAYER_STATE_DRIVER) {



        for( new i = 0; i < 22; i ++)
		{
  			PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ i ] );
		}
		PlayerTextDrawSetPreviewModel( playerid, BrzinomerTD[ playerid ][ 18 ], GetVehicleModel( GetPlayerVehicleID( playerid ) ) );
	    PlayerTextDrawShow( playerid, BrzinomerTD[ playerid ][ 18 ] );
	}
        }
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		for( new i = 0; i < 22; i ++)
		{
			PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
		}
	}





dalje
public OnPlayerExitVehicle(playerid, vehicleid)
{
	for( new i = 0; i < 22; i ++)
	{
		PlayerTextDrawHide( playerid, BrzinomerTD[ playerid ][ i ] );
	}
	return 1;
}

ovo obrisi jer je nepotrebno, posto u OnPlayerStateChange vec sakrivas tdove


i dalje isti problem ne prikazuje tdove..
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

Citat: yeet poslato Maj 01, 2021, 17:01:27 POSLE PODNE

i dalje isti problem ne prikazuje tdove..
Jesi ti uopste i ubacio tdove jer ne moguce da ti ne prikazuje ako je sve uradjeno kako treba

Citat: Dime123 poslato Maj 01, 2021, 18:03:51 POSLE PODNE
Jesi ti uopste i ubacio tdove jer ne moguce da ti ne prikazuje ako je sve uradjeno kako treba

da

BrzinomerTD[playerid][0] = CreatePlayerTextDraw(playerid, 451.249969, 368.629638, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][0], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][0], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][0], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][0], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][0], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][0], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][0], 0.000000, 180.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][0], 0);

    BrzinomerTD[playerid][1] = CreatePlayerTextDraw(playerid, 451.249969, 368.629638, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][1], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][1], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][1], 51);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][1], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][1], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][1], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][1], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][1], 0.000000, 180.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][1], 0);

    BrzinomerTD[playerid][2] = CreatePlayerTextDraw(playerid, 407.100128, 325.995910, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][2], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][2], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][2], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][2], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][2], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][2], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][2], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][2], 0.000000, 180.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][2], 0);

    BrzinomerTD[playerid][3] = CreatePlayerTextDraw(playerid, 407.100128, 325.995910, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][3], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][3], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][3], 51);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][3], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][3], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][3], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][3], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][3], 0.000000, 180.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][3], 0);

    BrzinomerTD[playerid][4] = CreatePlayerTextDraw(playerid, 413.283386, 325.877349, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][4], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][4], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][4], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][4], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][4], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][4], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][4], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][4], 0.000000, 0.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][4], 0);

    BrzinomerTD[playerid][5] = CreatePlayerTextDraw(playerid, 413.283386, 325.877349, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][5], 90.000000, 90.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][5], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][5], 51);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][5], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][5], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][5], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][5], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][5], 0.000000, 0.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][5], 0);

    BrzinomerTD[playerid][6] = CreatePlayerTextDraw(playerid, 452.083312, 370.703918, "LD_SPAC:white");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][6], 83.000000, 39.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][6], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][6], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][6], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][6], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][6], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][6], 0);

    BrzinomerTD[playerid][7] = CreatePlayerTextDraw(playerid, 452.083312, 370.703918, "LD_SPAC:white");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][7], 83.000000, 39.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][7], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][7], 51);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][7], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][7], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][7], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][7], 0);

    BrzinomerTD[playerid][8] = CreatePlayerTextDraw(playerid, 496.616790, 404.807586, "LD_SPAC:white");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][8], 38.600067, 13.270051);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][8], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][8], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][8], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][8], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][8], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][8], 0);

    BrzinomerTD[playerid][9] = CreatePlayerTextDraw(playerid, 496.616790, 404.807586, "LD_SPAC:white");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][9], 38.600067, 13.270051);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][9], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][9], 51);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][9], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][9], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][9], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][9], 0);

    BrzinomerTD[playerid][10] = CreatePlayerTextDraw(playerid, 461.950012, 364.403747, ".......");
    PlayerTextDrawLetterSize(playerid, BrzinomerTD[playerid][10], 0.115832, 0.547406);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][10], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][10], 202316031);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][10], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][10], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][10], 1);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][10], 1);

    BrzinomerTD[playerid][11] = CreatePlayerTextDraw(playerid, 490.000000, 378.481597, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][11], 48.000000, 49.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][11], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][11], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][11], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][11], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][11], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][11], 560);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][11], 0.000000, 0.000000, 0.000000, 1.000000);
    PlayerTextDrawSetPreviewVehCol(playerid, BrzinomerTD[playerid][11], 1, 1);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][11], 0);

    BrzinomerTD[playerid][12] = CreatePlayerTextDraw(playerid, 514.333496, 376.833038, "200"); // prva vrijednost za brzinu (prozirna), i nju treba updateovati svaki put
    PlayerTextDrawLetterSize(playerid, BrzinomerTD[playerid][12], 0.469583, 1.755553);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][12], 2);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][12], -239);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][12], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][12], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][12], 3);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][12], 1);

    BrzinomerTD[playerid][13] = CreatePlayerTextDraw(playerid, 514.333496, 381.133300, "200"); // druga više vidljiva vrijednost, i nju treba updateovati svaki put
    PlayerTextDrawLetterSize(playerid, BrzinomerTD[playerid][13], 0.218750, 0.822221);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][13], 2);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][13], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][13], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][13], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][13], 3);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][13], 1);

    BrzinomerTD[playerid][14] = CreatePlayerTextDraw(playerid, 449.949981, 351.403259, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][14], 60.000000, 65.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][14], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][14], -313665025);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][14], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][14], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][14], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][14], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][14], 0.000000, 180.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][14], 0);

    BrzinomerTD[playerid][15] = CreatePlayerTextDraw(playerid, 454.033264, 351.314208, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][15], 60.000000, 65.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][15], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][15], -313665025);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][15], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][15], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][15], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][15], 19177);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][15], 0.000000, 0.000000, 0.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][15], 0);

    BrzinomerTD[playerid][16] = CreatePlayerTextDraw(playerid, 452.216613, 379.000000, "LD_SPAC:white");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][16], 32.000000, 5.320006);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][16], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][16], -313665025);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][16], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][16], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][16], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][16], 0);

    BrzinomerTD[playerid][17] = CreatePlayerTextDraw(playerid, 448.016479, 376.570404, "particle:lamp_shad_64");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][17], 38.000000, 7.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][17], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][17], -313665025);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][17], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][17], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][17], 4);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][17], 0);

    BrzinomerTD[playerid][18] = CreatePlayerTextDraw(playerid, 533.333557, 371.262908, "INFERNUS"); // ime vozila
    PlayerTextDrawLetterSize(playerid, BrzinomerTD[playerid][18], 0.094166, 0.412591);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][18], 3);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][18], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][18], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][18], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][18], 2);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][18], 1);

    BrzinomerTD[playerid][19] = CreatePlayerTextDraw(playerid, 467.783813, 379.559295, "40L"); // gorivo
    PlayerTextDrawLetterSize(playerid, BrzinomerTD[playerid][19], 0.095833, 0.422962);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][19], 2);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][19], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][19], 0);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][19], 0x00000000);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][19], 2);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][19], 1);

    BrzinomerTD[playerid][20] = CreatePlayerTextDraw(playerid, 454.166625, 381.592651, "");
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][20], 26.000000, 35.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][20], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][20], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][20], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][20], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][20], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][20], 560);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][20], 0.000000, 0.000000, 90.000000, 1.000000);
    PlayerTextDrawSetPreviewVehCol(playerid, BrzinomerTD[playerid][20], 1, 1);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][20], 0);

    BrzinomerTD[playerid][21] = CreatePlayerTextDraw(playerid, 463.899841, 381.592651, ""); // ako su mu upaljena svjetla prikaži ovaj objekat, u suprotnom ga sakrij
    PlayerTextDrawTextSize(playerid, BrzinomerTD[playerid][21], 26.000000, 35.000000);
    PlayerTextDrawAlignment(playerid, BrzinomerTD[playerid][21], 1);
    PlayerTextDrawColor(playerid, BrzinomerTD[playerid][21], -1);
    PlayerTextDrawSetShadow(playerid, BrzinomerTD[playerid][21], 0);
    PlayerTextDrawFont(playerid, BrzinomerTD[playerid][21], 5);
    PlayerTextDrawSetProportional(playerid, BrzinomerTD[playerid][21], 0);
    PlayerTextDrawSetPreviewModel(playerid, BrzinomerTD[playerid][21], 18656);
    PlayerTextDrawSetPreviewRot(playerid, BrzinomerTD[playerid][21], 0.000000, 0.000000, 90.000000, 1.000000);
    PlayerTextDrawBackgroundColor(playerid, BrzinomerTD[playerid][21], 0);
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

eh sad najgora stvar od svega sto sam vratio iste tdove kako je bilo di je radilo i dalje nece prikazat sad stvarno neznam do cega je..
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.

CTRL + F
BrzinomerTD


i pregledaj gdje sve druge nema


EDIT: vjerovatno je neki hide ostao od prije

Citat: __vedran.xyz77 poslato Maj 01, 2021, 19:33:31 POSLE PODNE
CTRL + F
BrzinomerTD


i pregledaj gdje sve druge nema


EDIT: vjerovatno je neki hide ostao od prije


ovo je mozda glupo ali nije prikazalo zbog mjesanja ingame i ostaliingame tdovi uglavnom taj dio sam fixsao sad se prikazuje ali postoji problem sa svijetlima na tipki broj 2 je ali kad se pritisne nece se upalit :D
CitatNe idite uokolo tumačeći kako vam svijet duguje život. Svijet vam ne duguje ništa. On je bio prvi ovdje.