fwrite issue
#1

Hey, bascially I am making a straight write in this one area

pawn Код:
new fname[100];
        format(fname,100,"/Houses/%i.cfg",hid);
        new File:hfile = fopen(fname,io_write);
        fclose(hfile);         
        hfile = fopen(fname,io_append);
        new FileInfo[100][3];
        format(FileInfo[0],100,"Unowned \n"); fwrite(hfile,FileInfo[1]);
        format(FileInfo[1],100,"IconX=%f\r\n",hx); fwrite(hfile,FileInfo[2]);
        format(FileInfo[2],100,"IconY=%f\r\n",hy); fwrite(hfile,FileInfo[3]);
        format(FileInfo[3],100,"IconZ=%f\r\n",hz); fwrite(hfile,FileInfo[4]);
        fclose(hfile);
But it comes out in the file like this:
Quote:

wned
nX=-2521.163574
nY=-623.503662
nZ=132.772262

The word UNOWNED sort of doesn't appear fully.
Anyone know why?
Reply


Messages In This Thread
fwrite issue - by Paladin - 10.09.2009, 19:21
Re: fwrite issue - by [nl]daplayer - 10.09.2009, 19:25
Re: fwrite issue - by Paladin - 10.09.2009, 19:27
Re: fwrite issue - by [nl]daplayer - 12.09.2009, 08:09

Forum Jump:


Users browsing this thread: 5 Guest(s)