SA-MP Forums Archive
Maybe samp bug or not? - 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: Maybe samp bug or not? (/showthread.php?tid=373786)



Maybe samp bug or not? - Vvolk - 31.08.2012

Hello everybody. I have problem. I use AttachObjectToVehicle function, but sometimes object drops from vehicle and freezes in air.


When vehicle destroys I destroy this object but somtimes it doesn't disappear.
This is my code of attaching object:

Код:
forward Krauna(veh);
public Krauna(veh)
{
	if(IsVehicleInRangeOfPoint(veh,10,-1845.4242,169.1431,15.1172))
	{
		deze[veh] = CreateObject(3571,0.0,0.0,50.0,0.0,0.0,0.0);
		AttachObjectToVehicle(deze[veh], veh, 0.009999, -5.150070, 1.178000, 0.000000, 15.376512, -90.047943); //Object Model: 3571 |
	}
}



Re: Maybe samp bug or not? - Vvolk - 31.08.2012

Anyone can help?


Re: Maybe samp bug or not? - Vvolk - 31.08.2012

Somebody?


Respuesta: Maybe samp bug or not? - HarlemSAMP - 31.08.2012

Have you tried using AttachDynamicObjectToVehicle? i currently use it, pretty sure it's already defined on streamer.inc