PDA

View Full Version : How to place hashing on a DIALOG_STYLE_INPUT?


Diam0nd
21/06/2013, 05:11 AM
Hey guys, just something really simple to ask today...

I've been searching on ******, and still cannot find the answer. How do I make it hashed like '*' when inserting text into a DIALOG_STYLE_INPUT? Yes, I am doing this for a login.

Thank you very much.

Scenario
21/06/2013, 05:18 AM
Check out the Whirlpool plugin released by ******.

EDIT: Oh I thought you meant like legit password hashing. Sorry. The poster below has the right answer.

park4bmx
21/06/2013, 05:19 AM
DIALOG_STYLE_PASSWORD

Diam0nd
21/06/2013, 05:30 AM
Thank you both, very much! :)

Diam0nd
21/06/2013, 06:07 AM
Alright, so I've set my login and register boxes to be DIALOG_STLYE_PASSWORD, but when I type something in it still says the letters instead of '*'

Sasino97
21/06/2013, 06:09 AM
Alright, so I've set my login and register boxes to be DIALOG_STLYE_PASSWORD, but when I type something in it still says the letters instead of '*'

It's a strange thing, because DIALOG_STLYE_PASSWORD is working for me...

Diam0nd
21/06/2013, 06:13 AM
if(dialogid == 1244)
{
if(response)
{
if (gPlayerAccount[playerid] != 0)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"{FF0000FF}Account found{FF0000FF}","Type your password below to log-in","Log-in","Quit");
}
else
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_PASSWORD,"Welcome, Please register!","Type your password below to register a new account.","Register","Quit");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has accepted the terms and conditions.",d,m,y,h,mi,s,sendername);
LoginLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* You selected \"Refuse\", To play you must agree to the terms of condition");
Kick(playerid);
}
}

There's the code.

SilencedPistol
21/06/2013, 07:08 AM
Wherever you have used that particular dialog, change the style (second param) to DIALOG_STYLE_PASSWORD. Also check all of the dialog styles relating to that dialog, such as if you fail a password attempt does it show letters? If so, change those too.

Diam0nd
21/06/2013, 07:21 AM
What do you mean about the second param?

RedFusion
21/06/2013, 09:38 AM
Param = Parameter

(playerid, dialogid, style, caption[], info[], button1[], button2[])

Those are parameters