fexist not work up scriptfiles??
#1

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
Reply
#2

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.
Reply
#3

Thanks. RyDeR's one work fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)