Acess file outside scriptfiles folder - 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: Acess file outside scriptfiles folder (
/showthread.php?tid=215889)
Acess file outside scriptfiles folder -
Mike Garber - 24.01.2011
Is there a way i can access a file outside the scriptfiles folder?
I tried "../server.cfg" but It didn't work.
I wanna use It for certain values, but It crashes the server (i guess because it can't reach the file).
Re: Acess file outside scriptfiles folder -
Mauzen - 24.01.2011
All access is limited to the scriptfiles folder for security.
You could access other files with a plugin, there are several file plugins, but im not sure wether there is one for this.
Re: Acess file outside scriptfiles folder -
Mean - 24.01.2011
I think you can do it by puttin the whole path
Example:
pawn Код:
new file[256]; format(file, 256, "C:\Program Files\SA-MP\sumthing.extension");