SA-MP Forums Archive
Whirlpool Password Problem - 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)
+--- Thread: Whirlpool Password Problem (/showthread.php?tid=302857)



Whirlpool Password Problem - Tee - 10.12.2011

Well when I try to log-in with the correct password, I get the error that shows that it's incorrect. I did a debug, only to find out that the variable only stored 31 characters. I'm not sure what I'm doing wrong, the sizeof the password variable is 129 and so is the size of the buffer.

This is how I load the password into the variable:
pawn Код:
format(PlayerData[playerid][Password],129,"%s",field[10]);
Код:
input: CFB4126CF2D70BE0C23C44C63A1A393EE324C2ADA334E46E6EB165BA0F55B30F474FBDF02F615FAFC809B588A19A750121A68CC99CDECA18FDAB0062C575B9B4
pdata: CFB4126CF2D70BE0C23C44C63A1A393



Re: Whirlpool Password Problem - Tee - 10.12.2011

Solved, the problem was that the size of the second dimension in the "field" variable was 32, so I changed it to 129.
Well this is what I did:

From this:
pawn Код:
new field[129][32];
To this:

pawn Код:
new field[129][129];