Login/Register help "+ REP"
#1

Hey guys I need help regarding the register and login.. my admin system shows "Text" while putting your register. and I want it to become a "Password" style. like black circles while typing your password. what should I do?

thanks in advance guys..
Reply
#2

use DIALOG_STYLE_PASSWORD instead of DIALOG_STYLE_INPUT
Reply
#3

Use DIALOG_STYLE_PASSWORD under onplayerconnect login dialog
Reply
#4

Can't get it to work. register Line.

Код:
    if ( dialogid == Register1 )
	{
	    if ( response )
	    {
	        ShowDialog( playerid, Register2, INPUT, "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");
		}
		if ( !response ) Kick( playerid );
	}
	if ( dialogid == Register4 )
	{
	    if ( response )
	    {
	        ShowDialog( playerid, Register2, INPUT, "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");
		}
	}
	if ( dialogid == Register2 )
	{
Reply
#5

Here this should work:



Код:
  

//top of script with other defines
#define DIALOG_STYLE_PASSWORD PASSWORD

//under onplayercommect blah blah blah

  if ( dialogid == Register1 )
	{
	    if ( response )
	    {
	        ShowDialog( playerid, Register2, INPUT, "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");
		}
		if ( !response ) Kick( playerid );
	}
	if ( dialogid == Register4 )
	{
	    if ( response )
	    {
	        ShowDialog( playerid, Register2, PASSWORD. "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");// change being done here, as we have defines DIALOG_STYLE_PASSWORD as PASSWORD we just put PASSWORD where you can see it
		}
	}
	if ( dialogid == Register2 )
	{
[/QUOTE]
Reply
#6

pawn Код:
//add this to the defines [on the top of the script!]
#define DIALOG_STYLE_PASSWORD PASSWORD

//under public OnPlayerConnect(...)

  if ( dialogid == Register1 )
    {
        if ( response )
        {
            ShowDialog( playerid, Register2, PASSWORD, "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");
        }
        if ( !response ) Kick( playerid );
    }
    if ( dialogid == Register4 )
    {
        if ( response )
        {
            ShowDialog( playerid, Register2, PASSWORD. "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");// change being done here, as we have defines DIALOG_STYLE_PASSWORD as PASSWORD we just put PASSWORD where you can see it
        }
    }
Reply
#7

After replacing my script with yours i got this errors

Quote:

C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : error 017: undefined symbol "PASSWORD"
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : warning 215: expression has no effect
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : warning 215: expression has no effect
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : warning 215: expression has no effect
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : warning 215: expression has no effect
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Server\Desktop\s\gamemodes\s.pwn(11815) : fatal error 107: too many error messages on one line

Reply
#8

Quote:
Originally Posted by xMCx
Посмотреть сообщение
pawn Код:
//add this to the defines [on the top of the script!]
#define DIALOG_STYLE_PASSWORD PASSWORD

//under public OnPlayerConnect(...)

  if ( dialogid == Register1 )
    {
        if ( response )
        {
            ShowDialog( playerid, Register2, PASSWORD, "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");
        }
        if ( !response ) Kick( playerid );
    }
    if ( dialogid == Register4 )
    {
        if ( response )
        {
            ShowDialog( playerid, Register2, PASSWORD. "{FFFFFF}Enter Password", "{FFFFFF}Please enter your desired password:", "Enter", "");// change being done here, as we have defines DIALOG_STYLE_PASSWORD as PASSWORD we just put PASSWORD where you can see it
        }
    }

Still having the same error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)