20.06.2010, 21:08
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
works
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) ?
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);
pawn Код:
fopen("../EUX scripts/Factions.cfg", io_read);
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) ?