new password[20+1];
INI_ParseFile(file, "PlayerPassword", false, true, playerid, true, false );
GetPVarString(playerid, "Password", password, sizeof password);
new Str[400];format(Str,sizeof(Str),"Pass |%s|",password);
ShowPlayerDialog(playerid, SQLogin, DIALOG_STYLE_INPUT, "Your Pass", Str, "Ok", "");
Pass ||
Are you using enums? And lower your string to 128 or something. 24 will be also enough I think so.
|
You are using y_ini, can you post your "PlayerPassword" callback please? And how do you save the data? Do you use ini sections? If you are using YSI I suggest you get the latest version and use the user system built in.
|
//First try was like this
forward PlayerPassword(playerid, name[], value[]);
public PlayerPassword(playerid, name[], value[])
{
if(!strcmp(name,"Password"))SetPVarString(playerid,"Password", value);
}
//then i tried like this
forward PlayerPassword(playerid, name[], value[]);
public PlayerPassword(playerid, name[], value[])
{
if(!strcmp(name,"Password")){format(PlayerInfo[playerid][Password], 30, "%s", value);}
}
//Tried it with enum [EDIT]
GetPVarString(playerid, "Password", PlayerInfo[playerid][Password], 30;
new INI:Acc = INI_Open(file);
{
INI_WriteString(Acc,"Password", inputtext);
Loading doesn't seem to work that well with data not in sections (I'm not sure why).
|