SA-MP Forums Archive
[Help]AttachObjectToVehicle - 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: [Help]AttachObjectToVehicle (/showthread.php?tid=317388)



[Help]AttachObjectToVehicle - nemanjatesic - 11.02.2012

Код:
		          	new idcar = GetPlayerVehicleID(playerid);
		          	DestroyObject(neaonka1[idcar]);
		          	DestroyObject(neaonka2[idcar]);
		          	neaonka1[idcar] = CreateObject(18650,0, 0, 0, 0, 0, 0);
		          	neaonka2[idcar] = CreateObject(18650,0, 0, 0, 0, 0, 0);
		          	AttachObjectToVehicle(neaonka1[idcar],idcar, -0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
        	    AttachObjectToVehicle(neaonka2[idcar],idcar, 0.8, 0.0, -0.55, 0.0, 0.0, 0.0);
        	    SendClientMessage(playerid,COLOR_WHITE,"Neonk Attached!");
where is the problem here!!!! Neon doesn't creat