dini file
#1

hi,
anybody know how to fix it pls
when enter the password does not create the file
thanks

Код:
if(dialogid == 10 && response == 1)
{
new s[50], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(s, sizeof(s),"/Users/%s.sav", name);
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid,10,DIALOG_STYLE_PASSWORD,"{FF0000}Register","{FF0000}You must enter a password!\n{FFFFFF}Enter your password","Register","Close");
}
if (strlen(inputtext) > 0)
{
if(!fexist(s))
{
dini_Create(s);
dini_IntSet(s, "Password", udb_hash(inputtext));
gPlayerLogged[playerid] = 1;
}
}
}
Reply


Messages In This Thread
dini file - by LoLeC - 26.09.2013, 12:44
Re: dini file - by Voxel - 26.09.2013, 14:06
Re: dini file - by LoLeC - 26.09.2013, 14:22
Re: dini file - by Voxel - 26.09.2013, 14:25
Re: dini file - by Konstantinos - 26.09.2013, 14:27
Re: dini file - by Voxel - 26.09.2013, 14:31
Re: dini file - by LoLeC - 26.09.2013, 18:14
Re: dini file - by LoLeC - 05.10.2013, 19:04
Re: dini file - by EmpireSk - 05.10.2013, 19:06

Forum Jump:


Users browsing this thread: 3 Guest(s)