07.04.2018, 20:16
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.
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.