SA-MP Forums Archive
[Error] Login form allow any password - 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: [Error] Login form allow any password (/showthread.php?tid=591401)



[Error] Login form allow any password - extractor304 - 11.10.2015

I donґt know because but my login system allows any password for any user , i try many things but none works

This is the code of my login system :

Код:
case DLOGIN:
		{
			if(response == 1)
			{
               if(!strlen(inputtext))
	    		{
		        Mensaje(playerid, COLOR_GREY, " Debes introducir tu contraseсa para continuar.");
		        format(string, sizeof(string), "{FFFFFF}Bienvenido de nuevo, %s!\n{FFFFFF}Ingresa a continuaciуn tu contraseсa para conectarte al servidor\n\nTienes en total {E80000}3{FFFFFF} intentos de logueo.", NombreIC(playerid));
	    		ShowPlayerDialog(playerid, DLOGIN, DIALOG_STYLE_PASSWORD, "{E80000}› {FFFFFF}Ingresar al servidor", string, "Conectar", "");
				return 1;
				}

				//if (ComprobarClave(playerid, inputtext))
               if(!strcmp(Info[playerid][pKey],inputtext))
				{
				    InsideMainMenu[playerid] = false;
				    INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
				    KillTimer(LoginTimer[playerid]);
		            PlayerLogin(playerid);
				}
				else
				{
	        		SetPVarInt(playerid, "IntentosIngreso", GetPVarInt(playerid, "IntentosIngreso")+1);
	        		format(string, sizeof(string), " La contraseсa introducida es incorrecta. (%d/%d)", GetPVarInt(playerid, "IntentosIngreso"), LIMITE_INTENTOS_INGRESO);
		    		Mensaje(playerid, COLOR_GREY, string);
		           	if (GetPVarInt(playerid, "IntentosIngreso") == LIMITE_INTENTOS_INGRESO)
		    		{
			        Mensaje(playerid, COLOR_ORANGE, "Has sido kickeado automбticamente. (Razуn: Lнmite de intentos de ingreso)");
			        Expulsar(playerid);
			        return 1;
		            }
		            format(string, sizeof(string), "{FFFFFF}Bienvenido de nuevo, %s!\n{FFFFFF}Ingresa a continuaciуn tu contraseсa para conectarte al servidor\n\nTienes en total {E80000}3{FFFFFF} intentos de logueo.", NombreIC(playerid));
	    			ShowPlayerDialog(playerid, DLOGIN, DIALOG_STYLE_PASSWORD, "{E80000}› {FFFFFF}Ingresar al servidor", string, "Conectar", "");
                	return 1;
				}
        	}
Help me please