Whirepool help!FAST - 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: Whirepool help!FAST (
/showthread.php?tid=186308)
Whirepool help!FAST -
DarkPower - 28.10.2010
I need help with whirepool hash system....
I use dudb_hash and i wanna to put whirepool. This is code from my script..
Example
pawn Код:
if(udb_hash(inputtext) != tmp)
And when i make something like this:
pawn Код:
if(WP_Hash(inputtext) != tmp)
i get this warnings
C:\Users\ExtremePower\Desktop\Mode\gamemodes\lve.p wn(14

: warning 202: number of arguments does not match definition
C:\Users\ExtremePower\Desktop\Mode\gamemodes\lve.p wn(14

: warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Can someone help me with this?
Re: Whirepool help!FAST -
DeathOnaStick - 28.10.2010
Quote:
Originally Posted by DarkPower
I need help with whirepool hash system....
I use dudb_hash and i wanna to put whirepool. This is code from my script..
Example
pawn Код:
if(udb_hash(inputtext) != tmp)
And when i make something like this:
pawn Код:
if(WP_Hash(inputtext) != tmp)
i get this warnings
C:\Users\ExtremePower\Desktop\Mode\gamemodes\lve.p wn(14  : warning 202: number of arguments does not match definition
C:\Users\ExtremePower\Desktop\Mode\gamemodes\lve.p wn(14  : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Can someone help me with this?
|
You need to store it into a buffer. Should look like this:
pawn Код:
new buffer[50];
wp_hash(string, buffer, sizeof(buffer));
if(!strcmp(buffer, password))print("Pass Correct.");
Re: Whirepool help!FAST -
DarkPower - 28.10.2010
Can you help me :S this is my reg system:
http://pastebin.com/9gFk1L1j can you just add whirepool plz, tny
Re: Whirepool help!FAST -
DeathOnaStick - 28.10.2010
Quote:
Originally Posted by DarkPower
|
No. Because:
1. I work with sscanf, not with strtok.
2. I don't understand anything of your script, because it is written in a language, i'm not able to understand.
3. You should be able to do it by yourself. It's not as complex as you think, I guess.