SA-MP Forums Archive
Not attatching - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Not attatching (/showthread.php?tid=520783)



Not attatching - DovIIs - 20.06.2014

Код:
trailer = CreateVehicle(450, -1658.2975, 35.4623, 3.7277, 198.6108, 0, 1, 6000);//////////ZVYRAS
AttachTrailerToVehicle(trailer, vehicleid);
And i don't get attatched a trailer ? what is wrong ? i try attatch trailer to truck


Re: Not attatching - Vince - 20.06.2014

Edit: nevermind.
Hint: code in English.


Re: Not attatching - Faisal_khan - 20.06.2014

You have to use it like this:
pawn Код:
new vehicleid = CreateVehicle(...);
new trailerid = CreateVehicle(...);
 
AttachTrailerToVehicle(trailerid, vehicleid);



Re: Not attatching - Beckett - 20.06.2014

And where are you using "AttackTrailerToVehicle"?


Re: Not attatching - DovIIs - 20.06.2014

I am using this code when i get on a chechpoint, and i need to attatck a trailer to truck