SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 22/01/2013, 06:47 AM   #1
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Question Password will not save in my Login system.

Hey guys, I've recently finished making my brand new Login system. And what happens, when you login and make a new account, and you type in your password again. It says that I have entered a incorrect password? How could that be possible? I entered my password which I made the account with, then it says it is incorrect. Is there a way to fix it?

Please help!
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Old 22/01/2013, 06:47 AM   #2
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Password will not save in my Login system.

Gotta' show some code if you want us to help bud.
Scenario is offline   Reply With Quote
Old 22/01/2013, 06:50 AM   #3
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Question Re: Password will not save in my Login system.

http://pastebin.com/eBv29F8f . Whole code!
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Old 22/01/2013, 06:54 AM   #4
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Password will not save in my Login system.

You aren't loading the account variables before you try to check them with what the user inputs.
Scenario is offline   Reply With Quote
Old 22/01/2013, 06:55 AM   #5
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Exclamation Re: Password will not save in my Login system.

Quote:
Originally Posted by RealCop228 View Post
You aren't loading the account variables before you try to check them with what the user inputs.
Ok, thanks. But could you please help me with it? Like the line I have to input
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Old 22/01/2013, 06:56 AM   #6
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Password will not save in my Login system.

Put what is on line 561 before line 559.
Scenario is offline   Reply With Quote
Old 22/01/2013, 06:59 AM   #7
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Default Re: Password will not save in my Login system.

Ok I moved

Code:
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
from line 561. Ok then I moved it to line 559. Then do I delete the old one from line 561, our just leave it?
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Old 22/01/2013, 07:04 AM   #8
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,801
Reputation: 701
Default Re: Password will not save in my Login system.

Delete it.

You don't need to re-load the player's account variables if you've already done it.
Scenario is offline   Reply With Quote
Old 22/01/2013, 03:15 PM   #9
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Question Re: Password will not save in my Login system.

I tried it. It still doesn't work!
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Old 22/01/2013, 03:35 PM   #10
Goldino
Huge Clucker
 
Join Date: Nov 2012
Posts: 418
Reputation: -18
Default Re: Password will not save in my Login system.

HELP PLEASE!
__________________
The universe shall now implode.
Goldino is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] System Login/Register with recovery password via email at dof2 JonathanFeitosa Filterscripts 37 22/05/2014 05:15 AM
Login/Register System y_ini - Incorrect Password Problem! Threshold Scripting Help 4 02/12/2012 11:36 AM
Login system dont save accounts as it should jotan. Scripting Help 3 17/09/2011 05:36 PM
Password doesn't save? Antonio [G-RP] Help Archive 4 18/06/2010 12:40 AM


All times are GMT. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.