#1

Hello.

Whenever I login, it logs me in even if the password is incorrect.

Script: http://pastebin.com/C9CeB5KN
Reply
#2

Bump.
Reply
#3

Add this code before showing registration/login dialog.

pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUserData_%s", .bExtra = true, .extra = playerid);
And Remove @ From Your Loading Data Function.

pawn Код:
LoadUserData
Reply
#4

Thanks for your reply. I removed the @, but

I've already this: INI_ParseFile(UserPath(playerid), "LoadUserData_%s", .bExtra = true, .extra = playerid); In the login dialog on onplayerconnect.

pawn Код:
else
    {
        // login
        INI_ParseFile(UserPath(playerid), "LoadUserData_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Account", "Login to your account\n\nEnter your password", "Login", "Quit");
    }
    return 1;
I only see the need of doing it under the login dialog, as when you register you don't need to load anything, right?
Reply
#5

No, You don't need to load anything when you register.
Just make sure the dialog response is perfect, And try going back to the topic where you found this Login/Registration System and adding it back successfully without any warnings/errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)