SA-MP Forums Archive
How to create a folder to save in it the users who register ? - 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: How to create a folder to save in it the users who register ? (/showthread.php?tid=526474)



How to create a folder to save in it the users who register ? - EgyptForLife - 17.07.2014

Hello,

Well, All newbies download a gamemode, and try to learn from it and work on it. I downloaded 2 gamemodes, worked on them and made them one, but i have a problem. There is no folder to save the registered accounts, i need help with making it. Can anyone help me ? Thanks.


Re: How to create a folder to save in it the users who register ? - Kyance - 17.07.2014

Create an "Users" ( or w.e the defined path's name is. ) folder, in scriptfiles.
So it would be like;
scriptfiles\Users
Names would be saved as;
scriptfiles\Users\PlayersName.ini
etc.


Re: How to create a folder to save in it the users who register ? - EgyptForLife - 17.07.2014

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Create an "Users" ( or w.e the defined path's name is. ) folder, in scriptfiles.
So it would be like;
scriptfiles\Users
Names would be saved as;
scriptfiles\Users\PlayersName.ini
etc.
it is not working, i stay on registering but in the end doesn't work.


Re: How to create a folder to save in it the users who register ? - Kyance - 17.07.2014

Quote:
Originally Posted by EgyptForLife
Посмотреть сообщение
it is not working, i stay on registering but in the end doesn't work.
Can you show us the register dialog/part?
Are you actually using this stuff? ( If you're using Y_INI );
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
//Other stuff
//...
//...
//...
INI_Close(File);



Re: How to create a folder to save in it the users who register ? - admiralspeedy - 17.07.2014

Right click, new folder, name it. Profit.


Re: How to create a folder to save in it the users who register ? - EgyptForLife - 17.07.2014

Still not working :\


Re: How to create a folder to save in it the users who register ? - EgyptForLife - 17.07.2014

Problem Fixed.