Password doesn't save? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Password doesn't save? (
/showthread.php?tid=155331)
Password doesn't save? -
Antonio [G-RP] - 18.06.2010
pawn Код:
format(file, sizeof(file), "/Accounts/%s.ini", pname);
dini_Create(file);
dini_IntSet(file, "pPassword", udb_hash(inputtext));
Then, after I check, the password isn't saved
Re: Password doesn't save? -
mprofitt - 18.06.2010
Use an SQL server. It is much better and easier.
Re: Password doesn't save? -
Antonio [G-RP] - 18.06.2010
I was going to, but I've NO idea how to do it.
Re: Password doesn't save? -
mprofitt - 18.06.2010
format(string, sizeof(string), "UPDATE PlayerInfo SET Password = '%s' WHERE PlayerName = '%s'", Password, PlayerName);
mysql_query(string);
simple as that...depending on what plugin you use, they all have slightly different context.
Re: Password doesn't save? -
Antonio [G-RP] - 18.06.2010
** On Topic - Fixed the problem.
** Off Topic - Theres other things such as loading players and registering stuff.. and login