inputtext problem
#1

Код:
	        if(response)
	        {
		        new uFile[35];
			    format(uFile, 35, "users/%s.ini", PlayerName(playerid));
			    new INI:playerFile = INI_Open(uFile);
			    new pword[128];
				format(pword, sizeof(pword), "%s", Hash(inputtext));
			    INI_WriteString(playerFile, "Password", pword);
			    new string[256];
			    format(string, sizeof(string), "Your password is: %s, your hash password is: %s", inputtext, pword);
			    SCM(playerid,COLOR_GREEN,string);
				//ShowPlayerDialog(playerid,
				INI_Close(playerFile);
			}
	    }
The result is just wrong...
For example:
When I enter the password: "123456".
This is the result:
Код:
"Your password is: 1424QT(very wierd), your hash password is: Doesn't mater..."
And this is the dialog line:
Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Register", "Please enter a password in order to register to the server.", "Register", "Cancel");
Reply


Messages In This Thread
inputtext problem - by gahal156 - 29.01.2014, 19:59
Re: inputtext problem - by Smileys - 29.01.2014, 20:05
Re: inputtext problem - by gahal156 - 29.01.2014, 20:06
Re: inputtext problem - by gahal156 - 30.01.2014, 04:32
Re: inputtext problem - by Smileys - 30.01.2014, 10:15
Re: inputtext problem - by Threshold - 30.01.2014, 10:28

Forum Jump:


Users browsing this thread: 2 Guest(s)