SA-MP Forums Archive
Dini won't create the file. - 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: Dini won't create the file. (/showthread.php?tid=267853)



Dini won't create the file. - Jack_Leslie - 10.07.2011

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"



Re: Dini won't create the file. - Outcast - 10.07.2011

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


Re: Dini won't create the file. - Jack_Leslie - 10.07.2011

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


Re: Dini won't create the file. - Outcast - 10.07.2011

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

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


that's what I meant xD.


Re: Dini won't create the file. - Jack_Leslie - 10.07.2011

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.