Password Bullet Point in Log-In Panel!
#1

In my log in panel, my password will show as this. (Note: This isn't really my password, lol)
blahblah123

I want it to show as this.
•••••••••••

pawn Код:
ShowMainMenuDialog(playerid, frame)
{
    new titlestring[64];
    new string[256];

    switch(frame)
    {
        case 1:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{FFFFFF}Madson Roleplay - Log-in Panel");
            format(string, sizeof(string), "{FFFFFF}Welcome back to Madson Roleplay, %s.\n\nThis account is marked as registered, you can log-in below.", GetPlayerNameEx(playerid));
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
        }
        case 2:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{FFFFFF}Madson Roleplay - Registration Panel");
            format(string, sizeof(string), "Welcome to Madson Roleplay, {FFFFFF}%s.\n\nThis account is marked as un-registered, insert a password for yourself.", GetPlayerNameEx(playerid));
            ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
        }
        case 3:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{FFFFFF}Madson Roleplay - Log-in Panel");
            format(string, sizeof(string), "{AA3333}Invalid Password!{FFFFFF}\n\nWelcome back to Madson Roleplay, %s.\n\nThis account is marked as registered, you can log-in below.", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
        }
    }
}
Reply
#2

If you want it like this:



Just replace "DIALOG_STYLE_INPUT" with "DIALOG_STYLE_PASSWORD"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)