File Functions restricted to 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: File Functions restricted to Scriptfiles? (
/showthread.php?tid=156064)
File Functions restricted to Scriptfiles? -
Joe_ - 20.06.2010
Hey guys, quick question.
I've been working on a project to increase my scripting skills.
This includes a "Core Script Addons" file.
This file is "../EUX scripts/".
Now my "Faction Engine" which handles factions has a problem.
I made a function named 'LoadFactions()' which loads all the factions.
However I can only read from scriptfiles, not my Core Script Addons file.
So for example
pawn Код:
fopen("Factions.cfg", io_read);
works
pawn Код:
fopen("../EUX scripts/Factions.cfg", io_read);
Doesn't.
Now seeing as this script is loading factions, Dini, SII etc is out of the question.
And due to hella lot of problems with MySQL, I'd rather not get into it.
So how can I access files beyond Scriptfiles (Like SII) ?