SA-MP Forums Archive
Password showing invalid - 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: Password showing invalid (/showthread.php?tid=623694)



Password showing invalid - Thom9son - 04.12.2016

http://pastebin.com/AQj0ameb

Basically, I register my account, and then it asks me to log in, which is what I want and is fine. However, when I enter the correct password, it just says invalid password. Any ideas? Help is much appreciated.


Re: Password showing invalid - Tass007 - 04.12.2016

Whenever you create an account is the password that is displaying is that the correct password?

I think you're doing exactly the same thing as this player.

https://sampforum.blast.hk/showthread.php?tid=623685

PHP код:
if(rows 0)




Re: Password showing invalid - Thom9son - 04.12.2016

You mean in the sendclientmessage to show the players IP and password? Then yes, the password shown there is the correct password. When I enter said password, it tells me that it's invalid


Re: Password showing invalid - Tass007 - 04.12.2016

Read this topic and it should be able to help you. https://sampforum.blast.hk/showthread.php?tid=623685

Player ended up having to update to R41


Re: Password showing invalid - BrianFaria - 04.12.2016

Explain better


Re: Password showing invalid - Thom9son - 04.12.2016

When I log in, I am asked to register my account, if it's a new of course. Then, when I enter a password to register the account, I am taken to the login screen. This is intentional. But when I enter my password in the login section, it says the password is invalid, yet the password I am entering is the correct password.


Re: Password showing invalid - Tass007 - 04.12.2016

Have you tried updating to R41? Also you shouldn't be doing
PHP код:
if(rows 0
Obviously you aren't loading your data properly. Here is an example from Konstantinos HERE


Re: Password showing invalid - Logic_ - 04.12.2016

I can't find where the problem is, but i would recommend you to run the query and then check the MySQL table, when you are shown the login dialog.
The problem seems to be in the login dialog and I can be wrong since a very small piece of code is provided to be frisked for the error, I would recommend you to re-write both of the dialogs, which will surely fix your error.