SA-MP Forums Archive
AttachTrailerToVehicle - problems - 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: AttachTrailerToVehicle - problems (/showthread.php?tid=580148)



AttachTrailerToVehicle - problems - Boreek - 02.07.2015

When a function in OnGameModeInit() - no result.
When called via the command - normally works.

Where is wrong?

Код:
stock VehicleTrailer()
{
	for(new i = 1; i <= veh_count_load; i++)
	{
		if(Vehicle[i][vTrailer] != 0) 
			AttachTrailerToVehicle(Vehicle[i][vTrailer],Vehicle[i][vID]);
	}
}