Password Wrong DINI
#2

I haven't worked with dini at all so this is just guesswork until somebody helps you but maybe this could be the problem:

dini_Int(file, "Password") == inputtext

You are comparing an int of the "Password" column from the file to the input text (right?).
Maybe you should do it like this:

if( !strcmp(dini_String(file,"Password"), inputtext) )
{
//correct password
}
else
{
//incorrect
}

Also, before all of this check
if( isnull(inputtext) ) // return that you didn't enter a password because an empty string will pass the strcmp check.
Reply


Messages In This Thread
Password Wrong DINI - by KamilPolska - 07.04.2018, 18:27
Re: Password Wrong DINI - by AdamsLT - 07.04.2018, 20:16
Re: Password Wrong DINI - by KamilPolska - 07.04.2018, 20:58
Re: Password Wrong DINI - by Abagail - 07.04.2018, 21:31
Re: Password Wrong DINI - by Mugala - 07.04.2018, 21:53
Re: Password Wrong DINI - by Logic_ - 07.04.2018, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)