02.05.2010, 18:31
I had this same problem.. btw, Im still having this stupid problem, but I've figured a small solution: Leave the first line of the file empty and once a new account gets created, write an empty line in it with fwrite(filename, "\r\n") just to make sure it doesnt happen with other accounts. Example with dini:
It may sometimes write "я" on the first line and I have no idea where the heck it comes from.
pawn Код:
stock dini_Create(filename[])
{
if(fexist(filename)) return false;
new File:fhnd;
fhnd = fopen(filename, io_write);
if(fhnd)
{
fwrite(fhnd, "\r\n"); //Here
fclose(fhnd);
return true;
}
return false;
}
