SA-MP Forums Archive
Password does not save in Update of Accounts [DINI] - 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 does not save in Update of Accounts [DINI] (/showthread.php?tid=118879)



Password does not save in Update of Accounts [DINI] - pagie1111 - 05.01.2010

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



Re: Password does not save in Update of Accounts [DINI] - aspire5630 - 05.01.2010

It should look something like this

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



Re: Password does not save in Update of Accounts [DINI] - pagie1111 - 05.01.2010

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


Re: Password does not save in Update of Accounts [DINI] - dice7 - 05.01.2010

dini_Get returns a 256 cell array