Y_INI Data fails to load?
#3

Are you creating the cars?
pawn Код:
public LoadCar()
{
    for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
    {
        new carfile[64];
        format(carfile, sizeof(carfile),"LARP/Vehicles/%d.ini", idx);
        new INI:clfile = INI_Open(carfile);
        if(fexist(carfile))
        {
            INI_ParseFile("clfile", "LoadCar_Data", .bExtra = true, .extra = idx);
CreateVehicle(CarInfo[idx][cModel],CarInfo[idx][cLocationx],CarInfo[idx][cLocationy], CarInfo[idx][cLocationz], CarInfo[idx][cAngle], CarInfo[idx][cColorOne],CarInfo[idx][cColorOne],5000);

        }
        INI_Close(clfile); // Closes the file
    }
    print("[SCRIPT]: Loaded Cars");
    return 1;
}
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)