SA-MP Forums Archive
Whats wrong with my login - 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: Whats wrong with my login (/showthread.php?tid=454770)



Whats wrong with my login - Sellize - 30.07.2013

Yeah if my password is lolsie it accepts the password lol
Код:
case DIALOG_LOGIN:
        {
            if (!response) return Kick (playerid);
            if(response) 
            {
                if(strlen(inputtext) == 0)
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FF21E1}Login","{F5ED05}Type your password below to login.\n{FA1111}You need to input a password!","Login","Quit server");
                }
                else
                {
	                if(!strcmp(inputtext, PlayerInfo[playerid][pPass], false))
	                {
	                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
	                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
	                    SendClientMessage(playerid, COLOR_GREEN, "You have been logged in.");
	                }
	                else
	                {
	                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FF21E1}Login","{F5ED05}Type your password below to login.\n{FA1111}Incorrect password!","Login","Quit server");
	                }
				}
                return 1;
            }
        }



Re: Whats wrong with my login - Facerafter - 30.07.2013

pawn Код:
if(!strcmp(inputtext, PlayerInfo[playerid][pPass], false))
Im not sure with this, I don't use strcmp much.
But try to remove the "!"

So
pawn Код:
if(strcmp(inputtext, PlayerInfo[playerid][pPass], false))



Re: Whats wrong with my login - -=Dar[K]Lord=- - 30.07.2013

Is Your Password Hashed? or Its A Direct Text Pass Saver?


Re: Whats wrong with my login - Sellize - 30.07.2013

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
Is Your Password Hashed? or Its A Direct Text Pass Saver?
Direct text