Password does not save in Update of Accounts [DINI]
#1

I have a basic account saving system. You register/login on connect and Update with new values as you disconnect.

One problem. Password doesn't update, turns blank so you can login with ANY password.

even if I add this to login.

pawn Код:
Account[playerid][Password] = dini_Get(string, "Password");
the compiler returns this error:

Код:
F:\SAMP 0.3\gamemodes\Mercs.pwn(467) : error 047: array sizes do not match, or destination array is too small
Код:
Thanks
Reply
#2

It should look something like this

pawn Код:
dini_IntSet(file, "Password", udb_hash(tmp));
Reply
#3

Quote:
Originally Posted by aspire5630
It should look something like this

pawn Код:
dini_IntSet(file, "Password", udb_hash(tmp));
No I am not trying to set the password like that. I need to save the Account[playerid][Password] to what the "Password" key is. But I get that error
Reply
#4

dini_Get returns a 256 cell array
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)