Problem with cars need help.
#1

I was having problem when i was adding a cars only for one faction/gang it was doing something wrong for cars
which is for buying but i change all cars without ids because i think there was some wrong i use this method:

pawn Код:
new PD, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, PD16, PD17, PD18, PD19, PD20, PD21;
pawn Код:
PD = AddStaticVehicleEx(525, 1544.2725830078, -1684.3175048828, 5.8806247711182, 90, -1, -1,3600); //Tow Truck 0
    PD1 = AddStaticVehicleEx(525, 1544.2365722656, -1676.2415771484, 5.8806247711182, 90, -1, -1,3600); //Tow Truck 1
    PD2 = AddStaticVehicleEx(525, 1544.1998291016, -1667.8420410156, 5.8806247711182, 90, -1, -1,3600); //Tow Truck 2
    PD3 = AddStaticVehicleEx(525, 1544.0983886719, -1659.0190429688, 5.8806247711182, 90, -1, -1,3600); //Tow Truck 3
    PD4 = AddStaticVehicleEx(525, 1543.8366699219, -1651.0957031250, 5.8806247711182, 90, -1, -1,3600); //Tow Truck 4
    PD5 = AddStaticVehicleEx(523, 1559.5144042969, -1695.6700439453, 5.5573687553406, 180, -1, -1,3600); //Pd Moto 5
    PD6 = AddStaticVehicleEx(523, 1562.0136718750, -1695.6467285156, 5.5573687553406, 180, -1, -1,3600); //Pd Moto 6
    PD7 = AddStaticVehicleEx(523, 1564.7636718750, -1695.6209716797, 5.5573687553406, 180, -1, -1,3600); //Pd Moto 7
    PD8 = AddStaticVehicleEx(523, 1567.5639648438, -1695.5939941406, 5.5573687553406, 180, -1, -1,3600); //Pd Moto 8
    PD9 = AddStaticVehicleEx(523, 1570.4886474609, -1695.5665283203, 5.5573687553406, 180, -1, -1,3600); //Pd Moto 9
    PD10 = AddStaticVehicleEx(596, 1558.6083984375, -1710.7120361328, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 10
    PD11 = AddStaticVehicleEx(596, 1595.4770507813, -1710.4575195313, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 11
    PD12 = AddStaticVehicleEx(596, 1591.5263671875, -1710.4882812500, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 12
    PD13 = AddStaticVehicleEx(596, 1587.5010986328, -1710.5202636719, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 13
    PD14 = AddStaticVehicleEx(596, 1583.4754638672, -1710.5520019531, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 14
    PD15 = AddStaticVehicleEx(596, 1578.7753906250, -1710.5869140625, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 15
    PD16 = AddStaticVehicleEx(596, 1574.4498291016, -1710.6218261719, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 16
    PD17 = AddStaticVehicleEx(596, 1570.5490722656, -1710.6518554688, 5.7106246948242, 0.0, -1, -1,3600); //Pd Car 17
    PD18 = AddStaticVehicleEx(598, 1535.9858,-1678.4391, 13.1296,0.1384, 1, 0,3600); // pd car 18
    PD19 = AddStaticVehicleEx(598, 1535.9451,-1666.9614, 13.1286,179.3908, 1, 0,3600); // pd car 19
    PD20 = AddStaticVehicleEx(497, 1564.0825195310, -1699.7293701172, 28.6605873107910, 90, -1, -1,3600);//Pd Mawerick 20
    PD21 = AddStaticVehicleEx(497, 1566.6628000000, -1653.8688000000, 28.5752000000000, 90, -1, -1,3600);//Pd maverick 21
pawn Код:
stock IsACopCar(carid)
{
    if(carid == PD || carid == PD1 || carid == PD2 || carid == PD3 || carid == PD4 || carid == PD5 || carid == PD6)
    {
        return 1;
    }
    else if(carid == PD7 || carid == PD8 || carid == PD9 || carid == PD10 || carid == PD11 || carid == PD12 || carid == PD13 || carid == PD14)
    {
        return 1;
    }
    else if(carid == PD15 || carid == PD16 || carid == PD17 || carid == PD18 || carid == PD19 || carid == PD20 || carid == PD21)
    {
         return 1;
    }
    return 0;
}
I change all cars like this i fixed errors and now no erros but i need to fix the cars for buying ...
Now what i need to change to fix cars which is for buying ?

OLD:
pawn Код:
new CarInfo[250][cInfo];

pawn Код:
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
    return 0;
}

Then i changed to this:

pawn Код:
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 154 && vehicleid <= 474) { return 1; }
    return 0;
}
But cars is for buying but price is 0$ i check cars.cfg there have prices ... and /veh when i spawn car, car is for buying price 0$... Please help!
Reply
#2

You're a bit unclearly, sorry :/
Reply
#3

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
You're a bit unclearly, sorry :/
If is unclearly why you make a post?
Reply
#4

Quote:
Originally Posted by GBLTeam
Посмотреть сообщение
If is unclearly why you make a post?
So you can make it more clear so we can help you. If it's unclear we can't help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)