y_ini - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_ini (
/showthread.php?tid=330269)
y_ini -
Cowboy - 31.03.2012
Hello.
Whenever I login, it logs me in even if the password is incorrect.
Script:
http://pastebin.com/C9CeB5KN
Re: y_ini -
Cowboy - 04.04.2012
Bump.
Re: y_ini -
BetaLaxx - 04.04.2012
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.
Re: y_ini -
Cowboy - 04.04.2012
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?
Re: y_ini -
BetaLaxx - 04.04.2012
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.