Acess file outside scriptfiles folder
#1

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

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

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");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)