Dialog problems
#7

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
I just wonder why you put "LOGIN_DIALOG" instead the dialogid?
I have it defined at the top of my script.

pawn Код:
#define     LOGIN_DIALOG        2
But, this has nothing to do with my problem.


EDIT: Fixed.

pawn Код:
case LOGIN_DIALOG:
        {
            if(response)
            {
                new
                    uFile[35],
                    player_Name[MAX_PLAYER_NAME];

                GetPlayerName(playerid, player_Name, sizeof(player_Name));
                format(uFile, 35, USER_DIRECTORY, player_Name);

                INI_ParseFile(uFile, "LoadUserData", .bExtra = true, .extra = playerid);
               
                if(strcmp(inputtext, SInfo[playerid][Password], true) == 0) 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 Kick(playerid);
            return 0;
        }
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)