27.11.2011, 21:03
Quote:
Okay, but you can't do the thing you currently have because "UserInfo[playerid][Password]" is a string, correct?
|
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))
EDIT2: I changed the password-checking code to the following -
pawn Код:
if(strcmp(inputtext, UserInfo[playerid][Password], true))