SA-MP Forums Archive
GetVehicleComponentType - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetVehicleComponentType (/showthread.php?tid=558304)



GetVehicleComponentType - kissad21 - 16.01.2015

I find bug, with function GetVehicleComponentType.


Component Front Bumper.

Код:
main()
{
	printf("%i",GetVehicleComponentType(1175));
}


11 slot - CARMODTYPE_REAR_BUMPER
https://sampwiki.blast.hk/wiki/Componentslots

It's a bug?


Re: GetVehicleComponentType - Abagail - 16.01.2015

It's because the vehicle doesn't have a front bumper 1175. See:
https://sampwiki.blast.hk/wiki/GetVehicleComponentType


Re: GetVehicleComponentType - Lordzy - 17.01.2015

Quote:

Known Bug: Both front bull bars and front bumper components are saved in the CARMODTYPE_FRONT_BUMPER slot. If a vehicle has both of them installed, this function will only return the one which was installed last.

https://sampwiki.blast.hk/wiki/GetVehicleComponentInSlot