BIG PROBLEM!
#10

pawn Код:
new idx = 224;
    while (idx < sizeof(CarInfo))
    {
        new coordsstring[256];
        formatt(cooordsstring, sizeof(coordsstring), "%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%s,%d,%d\n",
        CarInfo[idx][cModel],//
        CarInfo[idx][cLocationx],//
        CarInfo[idx][cLocationy],//
        CarInfo[idx][cLocationz],//
        CarInfo[idx][cAngle],//
        CarInfo[idx][cColorOne],//
        CarInfo[idx][cColorTwo],//
        CarInfo[idx][cOwner],//
        CarInfo[idx][cDescription],//
        CarInfo[idx][cValue],//
        CarInfo[idx][cLicense],//
        CarInfo[idx][cOwned],//
        CarInfo[idx][cLock],
        CarInfo[idx][mod1],
        CarInfo[idx][mod2],
        CarInfo[idx][mod3],
        CarInfo[idx][mod4],
        CarInfo[idx][mod5],
        CarInfo[idx][mod6],
        CarInfo[idx][mod7],
        CarInfo[idx][mod8],
        CarInfo[idx][mod9],
        CarInfo[idx][mod10],
        CarInfo[idx][mod11],
        CarInfo[idx][mod12],
        CarInfo[idx][mod13],
        CarInfo[idx][mod14],
        CarInfo[idx][mod15],
        CarInfo[idx][mod16],
        CarInfo[idx][mod17],
        CarInfo[idx][paintjob]);
        if(idx == 224)
        {
            file2 = fopen("cfg/cars.cfg", io_write);
        }
        else
        {
            file2 = fopen("cfg/cars.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
    return 1;
 }
Try this
Reply


Messages In This Thread
BIG PROBLEM! - by RaulSTARs - 15.04.2012, 12:30
Re: BIG PROBLEM! - by RaulSTARs - 15.04.2012, 12:45
Re: BIG PROBLEM! - by denNorske - 15.04.2012, 12:52
Re: BIG PROBLEM! - by RaulSTARs - 15.04.2012, 12:53
Re: BIG PROBLEM! - by denNorske - 15.04.2012, 12:55
Re: BIG PROBLEM! - by RaulSTARs - 15.04.2012, 12:57
Re: BIG PROBLEM! - by denNorske - 15.04.2012, 13:01
Re: BIG PROBLEM! - by Faisal_khan - 15.04.2012, 13:14
Re: BIG PROBLEM! - by RaulSTARs - 15.04.2012, 13:17
Re: BIG PROBLEM! - by nilanjay - 15.04.2012, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)