SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 16/01/2015, 05:34 PM   #1
kissad21
Little Clucker
 
Join Date: Dec 2014
Posts: 4
Reputation: 0
Default GetVehicleComponentType

I find bug, with function GetVehicleComponentType.


Component Front Bumper.

Code:
main()
{
	printf("%i",GetVehicleComponentType(1175));
}


11 slot - CARMODTYPE_REAR_BUMPER
http://wiki.sa-mp.com/wiki/Componentslots

It's a bug?
kissad21 is offline   Reply With Quote
Old 16/01/2015, 10:09 PM   #2
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,133
Reputation: 445
Default Re: GetVehicleComponentType

It's because the vehicle doesn't have a front bumper 1175. See:
http://wiki.sa-mp.com/wiki/GetVehicleComponentType
Abagail is offline   Reply With Quote
Old 17/01/2015, 11:59 AM   #3
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,701
Reputation: 1177
Default Re: GetVehicleComponentType

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.
http://wiki.sa-mp.com/wiki/GetVehicleComponentInSlot
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetVehicleComponentType should return other values for Bullbars Raphinity Bug Reports 2 11/01/2013 02:44 AM
GetVehicleComponentType and AddVehicleComponent Ponchik Bug Reports 0 09/05/2011 05:36 PM
[Help] GetVehicleComponentType Jo_123 Help Archive 8 07/02/2010 07:15 PM


All times are GMT. The time now is 09:33 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.