SA-MP Forums Archive
Can't log - server crash. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can't log - server crash. (/showthread.php?tid=122422)



Can't log - server crash. - SaW_[VrTx] - 21.01.2010

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);
}



Re: Can't log - server crash. - [HiC]TheKiller - 21.01.2010

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

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