How can I set the ID of a vehicle?
#1

Anyone know how I can set the ID of vehicles (using a variable too). Bellow is what I though it was, but it doesn't work since I changed the maximum ammount of possible owned cars in my gamemode.

Thanks in advance!

What I have Onder OnGameModeInt (Maybe I need to change somthing in the code or elsewhere/use somthing else):
pawn Код:
LoadCar();
    new string2[64];
    for(new h = 1; h < sizeof(CarInfo); h++)
    {
        format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
        if(dini_Exists(string2))
        {
            ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
            if(CarInfo[h][cPaintjob] != 999)
            {
                ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
            }
            SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
            SetVehicleModifications(h);
        }
    }
Reply


Messages In This Thread
How can I set the ID of a vehicle? - by jakejohnsonusa - 28.01.2013, 22:06
Re: How can I set the ID of a vehicle? - by Riddick94 - 28.01.2013, 22:07
Re: How can I set the ID of a vehicle? - by Maraudeur - 28.01.2013, 22:14
Re: How can I set the ID of a vehicle? - by Scenario - 28.01.2013, 22:39
Re: How can I set the ID of a vehicle? - by jakejohnsonusa - 29.01.2013, 00:44
Re: How can I set the ID of a vehicle? - by Threshold - 29.01.2013, 01:19
Re: How can I set the ID of a vehicle? - by jakejohnsonusa - 29.01.2013, 19:36
Re: How can I set the ID of a vehicle? - by Threshold - 29.01.2013, 23:03
Re: How can I set the ID of a vehicle? - by jakejohnsonusa - 29.01.2013, 23:23
Re: How can I set the ID of a vehicle? - by [ABK]Antonio - 30.01.2013, 00:14

Forum Jump:


Users browsing this thread: 1 Guest(s)