Y_INI Data fails to load?
#6

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
What about this?
pawn Код:
LoadCar();
    new string2[64];
    for(new h = 0; h < MAX_VEHICLES; h++)
    {
        format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
        new INI:gmcfile = INI_Open(string2);
        if(fexist(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][cLock] == 1)
            {
                new e,l,a,d,b,bo,o;
                GetVehicleParamsEx(h,e,l,a,d,b,bo,o);
                SetVehicleParamsEx(h,e,l,a,1,b,bo,o);
            }
            if(CarInfo[h][cPaintjob] != 999)
            {
                ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
            }
            SetVehicleModifications(h);
            new lights, alarm, doors, bonnet, boot, objective;
            SetVehicleParamsEx(h, 0, lights, alarm, doors, bonnet, boot, objective);
            engineOn[h] = false;
        }
        INI_Close(gmcfile); // Closes the file
    }
No difference, cars didn't create.
Reply


Messages In This Thread
Y_INI Data fails to load? - by UnknownGamer - 31.08.2013, 21:14
Re: Y_INI Data fails to load? - by ProjectMan - 31.08.2013, 21:20
Re: Y_INI Data fails to load? - by EiresJason - 31.08.2013, 21:22
Re: Y_INI Data fails to load? - by UnknownGamer - 31.08.2013, 21:34
Re: Y_INI Data fails to load? - by EiresJason - 31.08.2013, 21:42
Re: Y_INI Data fails to load? - by UnknownGamer - 31.08.2013, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)