SA-MP Forums Archive
GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) (/showthread.php?tid=254145)



GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - eDz0r - 09.05.2011

I Want to Get The SideSkirt But The Car Has 2 Sideskirt The Left And The Right One.... How Can I Get The Second One ??


Re: GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - coole210 - 09.05.2011

A sideskirt comes with both sides, it's one component but 2 side skirts.


Re: GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - Combrad - 09.05.2011

It's like with the wheels, there are four of them, but they count as one component.


Re: GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - eDz0r - 09.05.2011

ok i make a command and both have rights..but why this code not work
pawn Код:
if(dini_Int(vsFile, "Sideskirt") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Sideskirt"));
}
and the rest works fine...
all code:
pawn Код:
if(dini_Int(vsFile, "PJ") != -1)
{
ChangeVehiclePaintjob(vsVehicleID[VehicleShopID], dini_Int(vsFile, "PJ"));
}
if(dini_Int(vsFile, "Spoiler") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Spoiler"));
}
if(dini_Int(vsFile, "Hood") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Hood"));
}
if(dini_Int(vsFile, "Roof") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Roof"));
}
if(dini_Int(vsFile, "Sideskirt") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Sideskirt"));
}
if(dini_Int(vsFile, "Lamps") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Lamps"));
}
if(dini_Int(vsFile, "Nitro") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Nitro"));
}
if(dini_Int(vsFile, "Exhaust") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Exhaust"));
}
if(dini_Int(vsFile, "Wheels") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Wheels"));
}
if(dini_Int(vsFile, "Stereo") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Stereo"));
}
if(dini_Int(vsFile, "Hydraulics") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "Hydraulics"));
}
if(dini_Int(vsFile, "FBumper") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "FBumper"));
}
if(dini_Int(vsFile, "RBumper") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "RBumper"));
}
if(dini_Int(vsFile, "VentR") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "VentR"));
}
if(dini_Int(vsFile, "VentL") != -1)
{
AddVehicleComponent(vsVehicleID[VehicleShopID], dini_Int(vsFile, "VentL"));
}



Re: GetVehicleComponentInSlot(vehicleid, CARMODTYPE_SIDESKIRT) - eDz0r - 10.05.2011

Bump