Jump to content
  • 0

Bug sirene pd


Nica_Mihai

Question

2 answers to this question

Recommended Posts

  • 0

Sigur ai mai multe masini Infernus asa ca te sfatuiesc sa faci asa:

La enum de la ServerVehicles pui un Obj1 si Obj2 dupa aceea faci asa:

if(ServerVehicles[idd][vModel] == 411) {
ServerVehicles[idd][Obj1] = CreateObject(19327, 1534.2373, -1643.2886, 5.9373, -87.6999, 90.4001, -87.1805);
SetObjectMaterialText(ServerVehicles[idd][Obj1], "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
ServerVehicles[idd][Obj2] CreateObject(19419,0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(ServerVehicles[idd][Obj1], idd, 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
AttachObjectToVehicle(ServerVehicles[idd][Obj2], idd, 0.0646, 0.1661, 0.6957, 0.0000, 0.0000, 0.0000);
}

Ca atunci pune acele obiecte pe toate masinile care sunt modelu' 411 (Infernus).

Modelu care l-ai facut tu , nu pune pe toate infernusurile acele obiecte , pune doar pe ultimul infernus ca din cate vad ai un loop.

Ex:

Ai 2 masini infernus (ID: 411)

infernus1 = CreateVehicle();

infernus2 = CreateVehicle();

for(new i=0;i<MAX_VEHICLES;i++) if(GetVehicleModelID(i) == 411) etc...

Obiectele se vor pune prima data pe infernus1 dupa se muta pe Infernus2 dar problema este ca il recreeaza ... apar alte buguri etc...

ca nu ii da DestroyObject (ma refer la scriptul pe care l-ai facut tu nu care ti l-am dat eu)

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

  • 0
La 18.05.2019 la 13:30, Ph0eniX a spus:

Sigur ai mai multe masini Infernus asa ca te sfatuiesc sa faci asa:

La enum de la ServerVehicles pui un Obj1 si Obj2 dupa aceea faci asa:


if(ServerVehicles[idd][vModel] == 411) {
ServerVehicles[idd][Obj1] = CreateObject(19327, 1534.2373, -1643.2886, 5.9373, -87.6999, 90.4001, -87.1805);
SetObjectMaterialText(ServerVehicles[idd][Obj1], "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
ServerVehicles[idd][Obj2] CreateObject(19419,0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(ServerVehicles[idd][Obj1], idd, 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
AttachObjectToVehicle(ServerVehicles[idd][Obj2], idd, 0.0646, 0.1661, 0.6957, 0.0000, 0.0000, 0.0000);
}

Ca atunci pune acele obiecte pe toate masinile care sunt modelu' 411 (Infernus).

Modelu care l-ai facut tu , nu pune pe toate infernusurile acele obiecte , pune doar pe ultimul infernus ca din cate vad ai un loop.

Ex:

Ai 2 masini infernus (ID: 411)

infernus1 = CreateVehicle();

infernus2 = CreateVehicle();

for(new i=0;i<MAX_VEHICLES;i++) if(GetVehicleModelID(i) == 411) etc...

Obiectele se vor pune prima data pe infernus1 dupa se muta pe Infernus2 dar problema este ca il recreeaza ... apar alte buguri etc...

ca nu ii da DestroyObject (ma refer la scriptul pe care l-ai facut tu nu care ti l-am dat eu)

Nu merge probabil este o limita de obiecte pe vehicule

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.