How to censor text while entering passwords?
#1

I have a dialog system for logging in and registering using Y_INI
I'm just curious if it's possible using Y_INI to change all the characters entered to ******* or the dots or whatever that way if someone is standing behind me they can't read my password as I'm typing it.
Reply
#2

Example:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Enter your password below:", "Login", "Cancel");
Taken from ShowPlayerDialog on the sa-mp wiki.

Just change your DIALOG_STYLE_INPUT section in your code to DIALOG_STYLE_PASSWORD, and walla, it's works.
Reply
#3

THANK YOU BRO
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)