passwords seems to be wrong after registering
#4

Yes, because the player's password doesn't load in time.
Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
That line is AFTER the password was checked. You need to load the password from the user file BEFORE the player would log in. Can you put that line under OnPlayerConnect?

Something like this
Код:
public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
	{
		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
	}
	return 1;
}
Reply


Messages In This Thread
[Y_ini]passwords seems to be wrong after registering[SOLVED] - by grymtn - 23.02.2017, 19:59
Re: passwords seems to be wrong after registering - by Awide - 23.02.2017, 20:34
Re: passwords seems to be wrong after registering - by grymtn - 23.02.2017, 20:47
Re: passwords seems to be wrong after registering - by Awide - 24.02.2017, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)