SA-MP Forums Archive
AddVehicleComponent will not work - 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: AddVehicleComponent will not work (/showthread.php?tid=500931)



AddVehicleComponent will not work - jeffery30162 - 15.03.2014

I have a new problem now:
When I add a vehicle component, it doesnt add it to the vehicle

heres my coding:
Код:
if(CarInfo[idx][cMod2] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod2]); // Exausts
	    		if(CarInfo[idx][cMod3] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod3]); // Front bumber
	    		if(CarInfo[idx][cMod4] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod4]); // Front bullbar
	    		if(CarInfo[idx][cMod5] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod5]); // Rear bullbar
	    		if(CarInfo[idx][cMod6] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod6]); // Sideskirt
	    		if(CarInfo[idx][cMod7] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod7]); // Wheels
	    		if(CarInfo[idx][cMod8] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod8]); // Stereo
	    		if(CarInfo[idx][cMod9] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod9]); // Hydraulics
	    		if(CarInfo[idx][cMod10] > -1) return AddVehicleComponent(CarInfo[idx][cVID], CarInfo[idx][cMod10]); // Nitro
This does nothing when ever i load the vehicles on server startup