pawn Код:
if(dialogid == DIALOG_LOGIN)
{
if(!response) Kick(playerid);
if(response) {
if(!strcmp(udb_hash(inputtext), PlayerInfo[playerid][pLozinka], false))
{
//Login functions.
}
else
{
//Wrong pass
}
}
}
return 1;
}
Use
strcmp to see if two strings are equal or not, I haven't used udb_hash so I don't know about that. Also 'LoadUser_%s' could create problems. I'd rather choose creating a function like 'LoadUser_Data' to load the user data from the file and execute it in 'INI_ParseFile'. Also, use a better hash like Whirlpool hash or SHA1. Those are really nice.