Posts: 182
Threads: 52
Joined: Feb 2009
Reputation:
0
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?
Posts: 4
Threads: 0
Joined: Jun 2013
Reputation:
0
Do you have an account saving system
Posts: 182
Threads: 52
Joined: Feb 2009
Reputation:
0
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;
}
Posts: 543
Threads: 100
Joined: Aug 2010
Reputation:
0
Does the folder "Users" exist in scriptfiles?