Trouble Overwriting A String
#1

I have never used strmid until now, and I'm not sure if I'm using it correctly.
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.
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.
Код:
[04:41:23] Booboo Test: 0D22FB7594D51AD1429447E311C477C01884CF8DDEC6427146FCE64BD817D8A4522458613941237CB5954415A05C49B7D03D753711AA8C28467AB24708F0EC59
[04:41:23] Hope-fucking-ly:
Any help would be greatly appreciated.
Reply


Messages In This Thread
Trouble Overwriting A String - by ReneG - 21.05.2012, 11:43
Re: Trouble Overwriting A String - by Azazelo - 21.05.2012, 11:52
Re: Trouble Overwriting A String - by ReneG - 21.05.2012, 12:00
Re: Trouble Overwriting A String - by Azazelo - 21.05.2012, 12:20
Re: Trouble Overwriting A String - by ReneG - 21.05.2012, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)