File save problem
#2

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
Well i made a anti advertise and it also logs in a .txt. The problem is if another person ad's, it will create the text on the same line, i want that it will create a new line on the .txt
pawn Код:
new File:pos=fopen("Advertisers.txt", io_append);
            format(str,sizeof(str),"%s: %s (%s %d, %d : %d)",Nam,text,Months[bmonth - 1],bday,bhour,bminute);
            fwrite(pos, str);
            fclose(pos);
pawn Код:
new File:pos=fopen("Advertisers.txt", io_append);
            format(str,sizeof(str),"%s: %s (%s %d, %d : %d)\n",Nam,text,Months[bmonth - 1],bday,bhour,bminute);
            fwrite(pos, str);
            fclose(pos);
Try that and tell me if it works.
Reply


Messages In This Thread
File save problem - by Tanush123 - 24.03.2012, 03:29
Re: File save problem - by ddnbb - 24.03.2012, 03:31
Re: File save problem - by Reklez - 24.03.2012, 03:34
Re: File save problem - by Tanush123 - 24.03.2012, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)