Jump to content
  • 0

Problemă trailer


Zx.clopotel

Question

Problema intalnita (descriere): Nu mi se ataseaza remorca la tractor, practic eu la job-ul farmer, am facut incat sa se spawneze o masina cand tastezi /work, si o remorca (ID 610). Dar nu se ataseaza la tractor
Ero(area / rile) / warning-(ul / urile): Nu imi da erori
Liniile de cod / sursa / am pus: 

AttachTrailerToVehicle(Trailer[playerid], JobCar[playerid]);

script-ul(obligatoriu): 

Nu prea e nevoie


Imagini / Video (optional):
 

Edited by Zx.clopotel
.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

trebuie sa te folosesti de un timer

asta la ondialogresponse ( o dezvolti tu )

new camioanie[MAX_PLAYERS];
new Float:Xf, Float:Yf, Float:Zf;
GetPlayerPos(playerid, Xf, Yf, Zf);
camioanie[playerid] = AddStaticVehicle(435, Xf,Yf,Zf, 360,3,1);
new IDTruck = GetPlayerVehicleID(playerid);
SetTimerEx("BagaRemorca", 1000, false, "ii", camioanie[playerid],IDTruck);

si timerul BagaRemorca

function BagaRemorca(trailer, car)
{
	AttachTrailerToVehicle(trailer, car);
   	return 1;
}

 

Link to comment
Share on other sites

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.