Y_INI Files System
#1

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"
Reply
#2

Maybe....

PHP код:
#define HOUSEPATH "/Houses/%s.ini" 
PHP код:
new INI:File INI_Open(HOUSEPATH(playerid)); 
Reply
#3

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));
Reply
#4

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));
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)