Jump to content

Question

Posted

Problema intalnita (descriere): ce nu e corect in acest script ? imi pune textul pe tablita dar numi pune 3d ! 
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu): 

forward plate();
public plate()
{
	//new nrinmatric[128];
	for(new i = 0; i < sizeof(PD); i++)
	{
	    format(TextCar, sizeof(TextCar), "LS-%d-PD", i);
     	//format(TextCar, sizeof(TextCar), "%s", CarInfo[h][cLicense]);
       	TextUpCar2[i] = Create3DTextLabel(TextCar, 0x0080FFFF , 0.0, 0.0, 0.0, 25, 0, 1);
       	Attach3DTextLabelToVehicle(TextUpCar2[i], i, 0.0, 0.0, 0.1);
	    //SetVehicleNumberPlate(PD[i], nrinmatric);
	    //SetVehicleToRespawn(PD[i]);
	}
	return 1;
	
}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da

9 answers to this question

Recommended Posts

  • 0
Posted

Incearca:

for(new i = 0; i < sizeof(PD); i++)
	{
	    format(TextCar, sizeof(TextCar), "LS-%d-PD", i);
     	//format(TextCar, sizeof(TextCar), "%s", CarInfo[h][cLicense]);
       	TextUpCar2[i] = Create3DTextLabel(TextCar, 0x0080FFFF , 0.0, 0.0, 0.0, 10.0, 0, 1);
       	Attach3DTextLabelToVehicle(TextUpCar2[i], i, 0.0, -2.8, 0.0);
	    //SetVehicleNumberPlate(PD[i], nrinmatric);
	    //SetVehicleToRespawn(PD[i]);
	}

 

  • 0
  • Administrator
Posted

Acel i de aici

Attach3DTextLabelToVehicle(TextUpCar2[i], i, 0.0, -2.8, 0.0);

trebuie sa fie ID-ul vehiculului in joc.

  • 0
Posted

Acel "i" de la format(bla bla) ce ar trebui sa fie ? Functia aia pe care ai facut-o o apelezi si tu vreodata ? Cand porneste gamemode-ul , cand se foloseste comanda daca exista ?

  • 0
Posted (edited)

am la ongamemodeinit 

	for(new i; i < sizeof(PD); i++)
    {
	    format(TextCar2, sizeof(TextCar2), "LS-%d-PD", i);
     	//format(TextCar, sizeof(TextCar), "%s", CarInfo[h][cLicense]);
       	TextUpCar2[i] = Create3DTextLabel(TextCar2, 0x0080FFFF , 0.0, 0.0, 0.0, 25, 0, 1);
       	Attach3DTextLabelToVehicle(TextUpCar2[i], i, 0.0, 0.0, 0.1);
	    SetVehicleNumberPlate(PD[i], TextCar2);
	    //SetVehicleToRespawn(PD[i]);
	}

deci pe placuta apare numarul bine dar numi apare 3d ! .

 

Edited by kiLLersx
  • 0
Posted

 

forward plate();
public plate()
{
	//new nrinmatric[128];
	for(new i = 0; i < sizeof(PD); i++)
	{
	    format(TextCar, sizeof(TextCar), "LS-%d-PD", i);
     	//format(TextCar, sizeof(TextCar), "%s", CarInfo[h][cLicense]);
       	TextUpCar2[i] = Create3DTextLabel(TextCar, 0x0080FFFF , 0.0, 0.0, 0.0, 25, 0, 1);
       	Attach3DTextLabelToVehicle(TextUpCar2[i], i, 0.0, 0.0, 0.1);
	    //SetVehicleNumberPlate(PD, nrinmatric);
	    //SetVehicleToRespawn(PD);
	}
	return 1;
	
}

Atunci asta de ce o mai ai daca ai si la ongamemodeinit pus acelasi lucru ?

  • 0
Posted

apare pe masini textul pana la masina 45 ca atatea am la pd si fbi . dar apare de la id 1 . eu vreau sa apara doar la masinile de pd .

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.