You can login with any password, and it's never wrong? Please help
#1

Hey guys, Just updated my admin/login system to another one. Now theres a problem. When go in game, it asks you for your password, you can type any password you want and it won't say the password is wrong. Heres the whole script. (the admin/login system is put together in the game mode,

http://pastebin.com/A5KLn4ih

I hope you can help me!
Reply
#2

You only need debug this:
pawn Код:
if(!strcmp(hashpass,pInfo[playerid][Pass])) //If they have insert their correct password
            {//then
One very important thing to note is that if either string is empty, strcmp will return 0 (and thus the code in that block will be executed).
Reply
#3

So what, delete that?
Reply
#4

DEBUG! Debug! My god.

https://en.wikipedia.org/wiki/Debugging
Reply
#5

Yes, what am I supposed to do with it? Your not helping at all?
Reply
#6

Please help? What shall I do?
Reply
#7

Help me! Please help! It doesn't save
Reply
#8

Hello!
Код:
if(!strcmp(hashpass,pInfo[playerid][Pass]))
This code is wrong. You have to write "true" at the end of the line like this:

Код:
if(!strcmp(hashpass,pInfo[playerid][Pass]), true))
I hope it will help you.

Rupert
Reply
#9

Oooops. I wrote it badly. You should try this:

Код:
if(!strcmp(hashpass,pInfo[playerid][Pass], true))
Reply
#10

Still doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)