SA-MP Forums Archive
How many trailers can a train have max? - 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: How many trailers can a train have max? (/showthread.php?tid=325300)



How many trailers can a train have max? - Abreezy - 12.03.2012

How many trailers could a train have?

For me, only 3 is working, maybe im doing wrong this is my code:

pawn Код:
tcar1 = AddStaticVehicleEx (537, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar2 = AddStaticVehicleEx (569, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar3 = AddStaticVehicleEx (569, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar4 = AddStaticVehicleEx (569, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar5 = AddStaticVehicleEx (569, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar6 = AddStaticVehicleEx (569,-3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );
    tcar7 = AddStaticVehicleEx (569, -3.0568,-1017.9979,20.8383,92.1999, 0, 1, 15 );

   
    AttachTrailerToVehicle(tcar1, tcar2);
    AttachTrailerToVehicle(tcar2, tcar3);
   
    AttachTrailerToVehicle(tcar3, tcar4);
    AttachTrailerToVehicle(tcar4, tcar5);
   
    AttachTrailerToVehicle(tcar5, tcar6);
    AttachTrailerToVehicle(tcar6, tcar7);
Is this correct or how do i do it?


Re: How many trailers can a train have max? - MP2 - 12.03.2012

You can not attach trailers to trains. They are 'specially' created with 3 carriages.


Re: How many trailers can a train have max? - Abreezy - 12.03.2012

How do you attach extra train cars then ?


Re: How many trailers can a train have max? - MP2 - 12.03.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
You can not attach trailers to trains.
Quoted myself.


Re: How many trailers can a train have max? - Abreezy - 12.03.2012

I've seen several servers with way more then 3 trailers though.


Re: How many trailers can a train have max? - MP2 - 12.03.2012

Really? Could you show a screenshot?