Password doesn't save?
#1

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

Use an SQL server. It is much better and easier.
Reply
#3

I was going to, but I've NO idea how to do it.
Reply
#4

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

** On Topic - Fixed the problem.

** Off Topic - Theres other things such as loading players and registering stuff.. and login
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)