What is wrong?
#1

Alright, so this is my dialog for my login screen, but I cannot seem to get it to work properly, it says every password is invalid.

pawn Код:
if(strlen(inputtext) >= 1)
                {
                    INI_ParseFile(UserPath(playerid), "LoadUserData_%s", .bExtra = true, .extra = playerid);
                    if(strlen(inputtext) == pInfo[playerid][Password])
                    {
                        pInfo[playerid][Authenticated] = 1;
                        SpawnPlayer(playerid);
                        return 1;
                    }
                    else
                    {
                        SendClientMessage(playerid, 0xFF0000FF, "ERROR: Invalid Password!");
                        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Login", "Login", "Login", "Cancel");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid, 0xFF0000FF, "ERROR: No password was entered!");
                    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Login", "Login", "Login", "Cancel");
                    return 1;
                }
Reply


Messages In This Thread
What is wrong? - by nmader - 08.04.2012, 23:39
Re: What is wrong? - by Vince - 09.04.2012, 00:06
Re: What is wrong? - by mincer1667 - 09.04.2012, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)