Jump to content
  • 0

Sprijin AttachObjectToVehicle


w3b

Question

Nick: w3b

Problema: Am incarcat sa atasez la un sultan din factiunea taxi un patratel dala pe care scrie Taxi dar nu apare , nu cred ca am facut bine

Errori: nu da

Linii script: Am pus la OnGameModeInit asta :[pawn]new obj;

if(GetVehicleModel(GetPlayerVehicleID(playerid)) == taxicar[4])

        {

        obj = CreateObject(18646,12,12,12, 0, 0, 0);

        AttachObjectToVehicle(obj, GetPlayerVehicleID(playerid),0, 0, 0.7, 0, 0, 0);

}[/pawn]

Ai incarcat sa rezolvi singur ?: Da

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Cred ca am facut bine, si coordonatele cred ca sunt bune , am facut dupa acest tutorial http://gta-mp.ro/forum/tutoriale/attachobjecttovehicle/

Am refacut functia [pawn]for(new i = 0; i<sizeof(taxicar); i++)

{

  new objTAXI1 = CreateObject(19308,0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000);

    AttachObjectToVehicle(objTAXI1, taxicar[8], -0.0083, -0.2279, 0.9243, 0, 0, 0);

}[/pawn] dar tot nu apare obiectul pe vehicul nush dc. Este ceva gresit in functie pe care am creato ?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.