SA-MP Forums Archive
Account password not working - 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: Account password not working (/showthread.php?tid=443011)



Account password not working - semaj - 09.06.2013

Hello when i register an account on my GM everything is fine can run about no problem but when i leave and come back on again the pass is invalid can anyone help?


Re: Account password not working - KevinDarten - 09.06.2013

Do you have an account saving system


Re: Account password not working - semaj - 09.06.2013

yes kevin av add the script in pastebin

http://pastebin.com/0egAGFWr


Re: Account password not working - KevinDarten - 09.06.2013

Do you have a line like this one ?
Quote:

Account[playerid][Password] = dini_Get(string, "Password");




Re: Account password not working - semaj - 09.06.2013

am not using dini

am using y_ini

public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,dlogin, DIALOG_STYLE_PASSWORD,""COL_GREEN"Login",""COL_WHI TE"This account is {00FF22}already registered.\n{FFFFFF}Please login by entering your password in below","Login","Quit");
}
else
{
ShowPlayerDialog(playerid,dregister, DIALOG_STYLE_PASSWORD,""COL_RED"Register",""COL_WH ITE"This account is{F81414} not yet registered \n{FFFFFF}Please create an account by typing your desired password below","Register","Quit");
return 1;
}
return 1;
}


Re: Account password not working - iTorran - 09.06.2013

Does the folder "Users" exist in scriptfiles?


Re: Account password not working - semaj - 09.06.2013

Fixed