Can't log - server crash.
#1

Why my server closes when i exec these lines?
Код:
public PayLog(string[])
{
	new entry[256];
	format(entry, sizeof(entry), "%s\n",string);
	new File:hFile;
	hFile = fopen("scriptfiles/pay.log", io_append);
	fwrite(hFile, entry);
	fclose(hFile);
}
Reply
#2

Do you have a folder called scriptfiles in scriptfiles otherwise it should be:

pawn Код:
hFile = fopen("pay.log", io_append);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)