[FIXED]fexist 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: [FIXED]fexist crash..? (
/showthread.php?tid=247159)
[FIXED]fexist crash..? -
MP2 - 08.04.2011
if(!fexist("Bugs.txt")) SendClientMessage(playerid, COLOR_RED, "No bugs reported.");
If the file exists, it's fine, but if the file doesn't exist the server crashes. What's up with that?
EDIT: Fixed. The code carried on and read from the file, which didn't exist.