[03:33:20] [join] Luca_Macchiavello has joined the server (0:127.0.0.1) [03:33:32] WP Error: Insufficient buffer size (must be at least 129) [03:33:43] [part] Luca_Macchiavello has left the server (0:1)
[PlayerData] Password = Money = 0 AdminLevel = 0 Level = 0 Skin = 0 Kills = 0 Deaths = 0
The variable (in your script) where you're storing the hash has a size less than that of the required, 129 characters.
|
Register password: 1234 Login password: 6666 Conclusion: Correct Password any password :S
WP Error: Insufficient buffer size (must be at least 129) |
if(dialogid == dlogin)
{
if(!response) return Kick(playerid);
if(response)
{
new hashpass[129];
WP_Hash(hashpass, sizeof(hashpass), inputtext);
if(!strcmp(hashpass, Info[playerid][pPass], false))
{
INI_ParseFile(Path(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
SetPlayerScore(playerid, Info[playerid][pLevel]);
GivePlayerMoney(playerid, Info[playerid][pDinero]);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(sMensaje, sizeof(sMensaje), "Has entrado con la cuenta %s.", name);
SendClientMessage(playerid, -1, sMensaje);
}
else
{
ShowPlayerDialog(playerid, dlogin, DIALOG_STYLE_INPUT, "Login", "Bienvenido a Napsix Roleplay.\nЙsta cuenta ya estб registrada.\nIngresa tu contraseсa para entrar.\nContraseсa incorrecta !", "Aceptar", "Salir");
return 1;
}
}
}