Problem with saving account passwords
#1

So, i'm in this script, and every time the player relogs, the password says it's incorrect. I go in the scriptfiles, and the password is = to a bunch of numbers. So, if anyone could help me / tell me what lines or something to post, I can.

This is the line where it loads the password/account from:

Код:
			INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
			ShowPlayerDialog(playerid,20,DIALOG_STYLE_PASSWORD,"Login","{24FF0A}Welcome to Gangwar Deathmatch.\n"MSG_WHITE"Please enter your password, to ensure your time on GW:DM!\n{24FF0A}Current Version: GW:DM v1.0!\n{FF9900}Enjoy your stay!","Login","Exit");
This is what my Scriptfiles folder looks like.

Scriptfiles > Folder(Logs) Folder(Users) Notepad(Ban)

In Users, I click on my name which I registered with, it says this:

[Data]
Password = 419103658
Cash = 5000
Admin = 0
Kills = 0
Deaths = 0
Muted = 0
Banned = 0
ReportBanned = 0
PlayingHours = 0
LSPD = 0

but, that's not my password, and when I relog, those numbers don't work, or the password that I registered with before. So, any help please?
Reply
#2

Are you using yini?
Reply
#3

Yes i'm using YSI/yini

#include <YSI\y_ini> // Created by ******. // Registration & Login. //
Reply
#4

This is a common error. Try running samp-server.exe as an administrator. IF that does not work re-download yini
Reply
#5

See, the thing is, I can't run as administrator because I upload to a host, but i'll try reinstalling. Standby while I check
Reply
#6

Those "numbers" won't work.

Are you hashing (encrypting) passwords?
Reply
#7

Quote:
Originally Posted by CrossOv3r
Посмотреть сообщение
Those "numbers" won't work.

Are you hashing (encrypting) passwords?
Sadly IDK what you're talking about. Sorry i'm pretty noob at scripting :/

Is there someone I can add on skype and send this to that can help me to fix it?
Reply
#8

Quote:
Originally Posted by nicholasramdhan
Посмотреть сообщение
Sadly IDK what you're talking about. Sorry i'm pretty noob at scripting :/

Is there someone I can add on skype and send this to that can help me to fix it?
Hashing passwords means that the passwords get changed into a bunch of weird numbers/letters etc to secure the passwords from a hacker who can get on your vps and steal the accounts and passwords
And when you put the original password into a dialog, you can hash the input to see if it matches the numbers in your user. ini

Код:
 INI_WriteInt(File,"Password", PlayerInfo[playerid][pPass] = udb_hash(inputparam));
That's your hashing
Reply
#9

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
Hashing passwords means that the passwords get changed into a bunch of weird numbers/letters etc to secure the passwords from a hacker who can get on your vps and steal the accounts and passwords
And when you put the original password into a dialog, you can hash the input to see if it matches the numbers in your user. ini

Код:
 INI_WriteInt(File,"Password", PlayerInfo[playerid][pPass] = udb_hash(inputparam));
That's your hashing
Okay so is there a solution for the passwords not really working?
Reply
#10

Quote:
Originally Posted by nicholasramdhan
Посмотреть сообщение
Okay so is there a solution for the passwords not really working?
The passwords are working, try registering a new account and input: testpswd
Themselves quit the game and see if you can log in with the password: testpswd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)