Dialog problems
#1

Well, i'm having a problem figuring out how to compare the text from inputtext (dialogs) to a file - It should work, but yet, it doesn't.

pawn Код:
case LOGIN_DIALOG:
        {
            if(response)
            {
                if(strlen(inputtext) <= 32)
                {
                    if(strcmp(SInfo[playerid][Password], inputtext, true)) //This is the problem.
                    {
                        OnPlayerLogin(playerid, inputtext);
                    }
                    else return ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_INPUT, "Welcome back!", "You appear to have an account on this server!\nPlease login by typing in your password below:", "Submit", "Quit");
                }
                else
                {
                    ShowPlayerDialog(playerid, LOGIN_DIALOG, DIALOG_STYLE_INPUT, "Welcome back!", "You appear to have an account on this server!\nPlease login by typing in your password below:", "Submit", "Quit");
                }
            }
            else return Kick(playerid);
        }
Any idea what's wrong here?
Reply


Messages In This Thread
Dialog problems - by Skylar Paul - 23.07.2011, 02:15
Re: Dialog problems - by =WoR=Varth - 23.07.2011, 02:24
Re: Dialog problems - by Skylar Paul - 23.07.2011, 02:28
Re: Dialog problems - by =WoR=Varth - 23.07.2011, 02:38
Re: Dialog problems - by Skylar Paul - 23.07.2011, 02:43
Re: Dialog problems - by =WoR=Varth - 23.07.2011, 02:47
Re: Dialog problems - by Skylar Paul - 23.07.2011, 02:48
Re: Dialog problems - by =WoR=Varth - 23.07.2011, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)