Is fseek bugged?
#1

Hey guys, I've been doing some tests and fseek was always returning 0, although by the samp-wiki it should return the new pos in the file.
Reply
#2

Show the code.
Reply
#3

It doesn't matter how u doing, try it urself if you want, tell me if it returns something besides 0
Reply
#4

Ok, I agree, it seems to be bugged
pawn Код:
//TEST CODE
main()
{
        new File:test = fopen("test.txt",io_readwrite);
        fwrite(test,"I will seek to first '5th position' in file.");
        printf("Returned value is %d",fseek(test,5,seek_start));
        fclose(test);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)