Dialog problems
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
pawn Код:
if(!strcmp(SInfo[playerid][Password], inputtext, true)) return OnPlayerLogin(playerid, inputtext);
That will check if the string is same it will return "OnPlayerLogin"
Still not working.

Quote:

[22:34:07]
Entered Password: sd
Actual Password: lolol1

And then I get the message, "You have been logged into Sky's Local Fun Zone."

Here's the code:

pawn Код:
case LOGIN_DIALOG:
        {
            if(response)
            {
                if(strlen(inputtext) <= 32)
                {
                    if(!strcmp(SInfo[playerid][Password], inputtext, true))
                        return 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);
        }
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: 2 Guest(s)