SA-MP Forums Archive
Login/Register help "+ REP" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Login/Register help "+ REP" (/showthread.php?tid=380425)



Login/Register help "+ REP" - adios1 - 25.09.2012

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..


Re: Login/Register help "+ REP" - rati555 - 25.09.2012

use DIALOG_STYLE_PASSWORD instead of DIALOG_STYLE_INPUT


Re: Login/Register help "+ REP" - Socan - 25.09.2012

Use DIALOG_STYLE_PASSWORD under onplayerconnect login dialog


Re: Login/Register help "+ REP" - adios1 - 25.09.2012

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 )
	{



Re: Login/Register help "+ REP" - Socan - 25.09.2012

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]


Re: Login/Register help "+ REP" - xMCx - 25.09.2012

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
        }
    }



Re: Login/Register help "+ REP" - adios1 - 25.09.2012

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




Re: Login/Register help "+ REP" - adios1 - 25.09.2012

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