Y_INI Files System - 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)
+--- Thread: Y_INI Files System (
/showthread.php?tid=470589)
Y_INI Files System -
AnonScripter - 18.10.2013
How this knows the defined path ?
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
defined path:
pawn Код:
#define PATH "/Users/%s.ini"
and how to make another path for houses ?? like:
pawn Код:
#define PATH "/Houses/%s.ini"
Re: Y_INI Files System -
HardRock - 18.10.2013
Maybe....
PHP код:
#define HOUSEPATH "/Houses/%s.ini"
PHP код:
new INI:File = INI_Open(HOUSEPATH(playerid));
Re: Y_INI Files System -
AnonScripter - 18.10.2013
Quote:
Originally Posted by HardRock
Maybe....
PHP код:
#define HOUSEPATH "/Houses/%s.ini"
PHP код:
new INI:File = INI_Open(HOUSEPATH(playerid));
|
if this is correct, this would be:
pawn Код:
new INI:File = INI_Open(PATH(playerid));
Re: Y_INI Files System -
iBeast - 18.10.2013
For the user path
pawn Код:
#define UPATH "/Users/%s.ini
and so it would become,
pawn Код:
new INI:File = INI_Open(UPATH(playerid));
For the Houses,
pawn Код:
#define HPATH "/Houses/%s.ini
and the following for yini,
pawn Код:
new INI:File = INI_Open(HPATH(playerid));
Re: Y_INI Files System -
AnonScripter - 18.10.2013
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
defined path:
pawn Код:
#define PATH "/Users/%s.ini"
I took this from the default sources of Y_INI Register/Login System and it works perfectly without renaming the path as you saying