21.05.2012, 11:43
I have never used strmid until now, and I'm not sure if I'm using it correctly.
I'm trying to extract all the characters from the Whirlpool hashed inputtext into the player's password variable. Before you ask, yes, pKey is exactly 129 cells.
Server console printed this.
Any help would be greatly appreciated.
pawn Код:
WP_Hash(wpHash, 129, inputtext); // I hash it
printf("Booboo Test: %s", wpHash); // It prints it
strmid(PlayerInfo[playerid][pKey], wpHash, 0, sizeof(wpHash)); // Idk what I'm doing
printf("Hope-fucking-ly: %s", PlayerInfo[playerid][pKey]); // It prints nothing.
Server console printed this.
Код:
[04:41:23] Booboo Test: 0D22FB7594D51AD1429447E311C477C01884CF8DDEC6427146FCE64BD817D8A4522458613941237CB5954415A05C49B7D03D753711AA8C28467AB24708F0EC59 [04:41:23] Hope-fucking-ly: