02.10.2014, 21:05
what I can already tell you is, that creating
at the point you did it (OnDialogResponse - even at the if(dialogid == ..... part) does not make any sense
the LOCAL variable is recreated each time you reenter the password, which sets it to 0 each time.
You need to create it as a GLOBAL variable (outside of any callback)
I'm not familar with the INI useage, but I suspect the failure in this
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
line... but as I said, it can be completely correct, as I don't know at all what INI_ParseFile does and what the syntax of it is
EDIT: ah yea and where are you getting your infos like "PlayerInfo[playerid][pPass]" from inbefore?
that's where you use it, but where do you get it?
pawn Код:
new LoginAttempts[MAX_PLAYERS];
the LOCAL variable is recreated each time you reenter the password, which sets it to 0 each time.
You need to create it as a GLOBAL variable (outside of any callback)
I'm not familar with the INI useage, but I suspect the failure in this
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
line... but as I said, it can be completely correct, as I don't know at all what INI_ParseFile does and what the syntax of it is
EDIT: ah yea and where are you getting your infos like "PlayerInfo[playerid][pPass]" from inbefore?
pawn Код:
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])