[HELP] fclose crashes server
#1

Why this code crashes server?
pawn Код:
new string[50];
    format(string, 128, "%s.txt", strlen(params));
    if(!fexist(string))
    {
      new File:newf = fopen(string, io_write);
      fclose(newf);
    }
I debugged it, it crashes in line "fclose(newf);".
Reply
#2

cuz you have to remove the
so it will be
if(fexist...
Reply
#3

I have to remove what?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)