Password showing invalid
#1

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.
Reply
#2

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)

Reply
#3

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
Reply
#4

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
Reply
#5

Explain better
Reply
#6

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.
Reply
#7

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)