What am I missing?
#6

Quote:
Originally Posted by Scarred
Посмотреть сообщение
"Password" in the enum is actually an integer, sadly, I'm flawed when it comes to Y_INI, and I can't figure out how to create password as a string properly, and the tutorial I'm looking at is wrong, I'm assuming.

However, I have switched "Password" over to a string in the enum, and changed my code around a bit; Let me test it, and I will edit my post/reply to this thread if it works or not. Give me about a minute.


EDIT: Alright, after switching my "Password" to a string in every bit of code, I'm getting a different action now. It's logging me in now, even if the password is incorrect. The correct password is "hello", I type in "1" as the password, and it automatically logs me in, when it is obviously not the password.

The password-checking code is:

pawn Код:
if(!strcmp(inputtext, UserInfo[playerid][Password], false))
I took out the hashing of the passwords, but still, I don't see what's wrong.

EDIT2: I changed the password-checking code to the following -

pawn Код:
if(strcmp(inputtext, UserInfo[playerid][Password], true))
and now every single password reads as invalid. I'm honestly getting quite confused by this considering it SHOULD be working. (within my logic, atleast)
Determine what "UserInfo[playerid][Password]" is, try doing this:

pawn Код:
print(UserInfo[playerid][Password]);
Reply


Messages In This Thread
What am I missing? - by Scarred - 27.11.2011, 20:49
Re: What am I missing? - by Scenario - 27.11.2011, 20:53
Re: What am I missing? - by Scarred - 27.11.2011, 20:56
Re: What am I missing? - by Scenario - 27.11.2011, 20:59
Re: What am I missing? - by Scarred - 27.11.2011, 21:03
Re: What am I missing? - by Scenario - 27.11.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)