Dini won't create the file.
#1

Obviously it's a user register system, but Dini won't create the file :S

Код:
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
new sendername[MAX_PLAYER_NAME];
dini_Create(file); // Creates the user file on registration
Код:
#define SERVER_USER_FILE "$s.ini"
Reply
#2

Код:
#define SERVER_USER_FILE "%s.ini"
maybe that?
Reply
#3

Quote:
Originally Posted by Outcast
Посмотреть сообщение
Код:
#define SERVER_USER_FILE "%s.ini"
maybe that?
Maybe but I don't know why.
Reply
#4

Your code:
#define SERVER_USER_FILE "$s.ini"

Try this:
#define SERVER_USER_FILE "%s.ini"


that's what I meant xD.
Reply
#5

Quote:
Originally Posted by Outcast
Посмотреть сообщение
Your code:
#define SERVER_USER_FILE "$s.ini"

Try this:
#define SERVER_USER_FILE "%s.ini"


that's what I meant xD.
How did I not see that... hahah thankyou.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)