SA-MP Forums Archive
fexist not work up scriptfiles?? - 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)
+--- Thread: fexist not work up scriptfiles?? (/showthread.php?tid=299812)



fexist not work up scriptfiles?? - whitedragon - 27.11.2011

So i started Gamemode from new.pwn but fexist not work like i have in my code
pawn Код:
if(!fexist("./../include/gl_spawns.inc")) // for testing perpesis
    {
       print("Your file does not exist");
    }
    else
    {
           print("Your file does exist");
       new File:fhandle = fopen("./../include/gl_spawns.inc",io_append);
       fwrite(fhandle,"Testing");
       fclose(fhandle);
    }
in console server shows: Your file does not exist


Re: fexist not work up scriptfiles?? - Sinc - 27.11.2011

The native fexist function handles files within the scriptfiles directory. You may use RyDeR's FileFunctions Plugin though, https://sampforum.blast.hk/showthread.php?tid=252918.


Re: fexist not work up scriptfiles?? - whitedragon - 27.11.2011

Thanks. RyDeR's one work fine