How to create a folder to save in it the users who register ?
#1

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

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.
Reply
#3

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.
Reply
#4

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

Right click, new folder, name it. Profit.
Reply
#6

Still not working :\
Reply
#7

Problem Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)