Doesn't load further files(.ini)(What the hell!?)
#2

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:
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;
}
It may sometimes write "я" on the first line and I have no idea where the heck it comes from.
Reply


Messages In This Thread
Doesn't load further files(.ini)(What the hell!?) - by 0ne - 02.05.2010, 17:48
Re: Doesn't load further files(.ini)(What the hell!?) - by M4S7ERMIND - 02.05.2010, 18:31
Re: Doesn't load further files(.ini)(What the hell!?) - by 0ne - 02.05.2010, 18:36
Re: Doesn't load further files(.ini)(What the hell!?) - by M4S7ERMIND - 02.05.2010, 19:14
Re: Doesn't load further files(.ini)(What the hell!?) - by 0ne - 02.05.2010, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)