[Pomoc] Label na autu


Započeo LoOdaK, Decembar 28, 2015, 23:11:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: 0
Detaljan opis problema: napravio sam labele na autima auto skole ali ne pokazuju se kad dodjem kod auta nezz zasto evo vam dole kod pa vidite jesam li nesto propustio
Dio skripte:
AutoSkNatpis0 = Create3DTextLabel("[AUTO SKOLA ]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1 );
	Attach3DTextLabelToVehicle(AutoSkNatpis0, AutoSkola[0], 0.0, 0.0, 0.0);
	AutoSkNatpis1 = Create3DTextLabel("[AUTO SKOLA]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1 );
	Attach3DTextLabelToVehicle(AutoSkNatpis1, AutoSkola[1], 0.0, 0.0, 0.0);
	AutoSkNatpis2 = Create3DTextLabel("[AUTO SKOLA]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1 );
	Attach3DTextLabelToVehicle(AutoSkNatpis2, AutoSkola[2], 0.0, 0.0, 0.0);
	AutoSkNatpis3 = Create3DTextLabel("[AUTO SKOLA]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1 );
	Attach3DTextLabelToVehicle(AutoSkNatpis3, AutoSkola[3], 0.0, 0.0, 0.0);
	AutoSkNatpis4 = Create3DTextLabel("[AUTO SKOLA]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1 );
	Attach3DTextLabelToVehicle(AutoSkNatpis4, AutoSkola[4], 0.0, 0.0, 0.0);

Neke slike/video za lakse dobivanje pomoci(neobavezno):
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Probaj ovako...
Dodaj ovo ispod OnGameModeInit.
if(AutaSkola(c))
	    {
	        GetVehiclePos(c, x,y,z);
	        format(vehstring,sizeof(vehstring),"[ Auto Skola ]");
	        VehicleLabel[c] = Create3DTextLabel(vehstring, SVETLOPLAVA, x, y, z, 20, 0, 1);
	        Attach3DTextLabelToVehicle(VehicleLabel[c],c,0,0,0);
		}

PS: Promeni define AutaSkola ako ti baca error u tvoje...
    ~ Member since: 09.13.2013. - 15:30 ~

CreateDynamic3DTextLabel koristi za njega ti ne treba attach a ide preko streamera znaci neograniceno  ;)

mozes mi dati primjer nekog labela na autu  :)
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Evo ti primer ako ti jos nesto nije jasno javi.
new vip1, Text3D:VIPP1; 
VIPP1 = Create3DTextLabel( "[ VIP ]", 0x33CCFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 ); //3DTEXT LABEL
vip1 = AddStaticVehicle(579,1021.3926,-1434.6804,13.4797,180.7201,0,0); //VOZILO
Attach3DTextLabelToVehicle( VIPP1, vip1, 0.0, 0.0, 0.0 ); //KACI LABLE NA VOZILO

pa brt tako sam i ja uradio gore
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Jesi probao moje ?
    ~ Member since: 09.13.2013. - 15:30 ~

Ja sam ti vec rekao kako da uradis ali ne slusas  :-[
AutoSkNatpis0 = CreateDynamic3DTextLabel("[AUTO SKOLA ]", 0x00FFFFFF, 0.0, 0.0, 0.0, 15.0, INVALID_PLAYER_ID, AutoSkola[0],0, -1, -1, -1, 100.0); 

Evo brt uradio sam onako ali baca warninge ono kao autoskolanatpis se nigdje ne koristi i ja obrisem gore one new textove i nema warninga ali opet nema texta na autima why?
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



ovo u vrh
new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id;

------------------------------------------------------------------------------

PRIMJER:
AutoSkola[0] = AddStaticVehicleEx(510,809.4775,-1352.2644,13.1483,87.5039,3,3,2400); //
        	            {
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[AUTO SKOLA]", 0x00FF11AA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , AutoSkola[0], 0.0, 0.0, 0.0);
    }

--------------------------------------------------------------------------------
ovo sam naveo primjer samo ovu liniju pronadjes AutoSkola[0] u svom modu i ispod ubacis
        	            {
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "[AUTO SKOLA]", 0x00FF11AA, 0.0, 0.0, 0.0, 20.0, 0, 1 );
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , AutoSkola[0], 0.0, 0.0, 0.0);
    }

Ispravio sam bio i sam inace hvala :) moze LOCK
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!