Account password not working
#1

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

Do you have an account saving system
Reply
#3

yes kevin av add the script in pastebin

http://pastebin.com/0egAGFWr
Reply
#4

Do you have a line like this one ?
Quote:

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

Reply
#5

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;
}
Reply
#6

Does the folder "Users" exist in scriptfiles?
Reply
#7

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)