I Need help with error
#5

Oh, you forgot to close the format.

pawn Код:
public SaveAutoSecu()
{
    new idx;
    new File: file2;
    idx = 184;
    while (idx < sizeof(CarInfo))
    {
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%i,%i,%i,\n",Datte[idx][1],Datte[idx][2],Datte[idx][3]);
        if(idx == 1)//52849
        {//52850
            file2 = fopen("AutoSecu.cfg", io_write);//52851
        }//52852
        else//52853
        {
            file2 = fopen("AutoSecu.cfg", io_append);
        }
        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
    return 1;
}
Reply


Messages In This Thread
I Need help with error - by scott1 - 06.02.2010, 11:34
Re: I Need help with error - by ettans - 06.02.2010, 11:38
Re: I Need help with error - by scott1 - 06.02.2010, 11:51
Re: I Need help with error - by scott1 - 06.02.2010, 18:01
Re: I Need help with error - by ettans - 06.02.2010, 18:04

Forum Jump:


Users browsing this thread: 2 Guest(s)