MD5-Problem -> Whirlpool-Problem
#1

I downloaded the MD5-Include from ******, which is used in SeifAdmin, but when I compile my script there comes this Error:
pawn Код:
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2791) : error 033: array must be indexed (variable "MD5_Hash")
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2826) : error 006: must be assigned to an array
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2860) : error 006: must be assigned to an array
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
These are the Lines:
Line 2791:
pawn Код:
if(PlayerInfo[playerid][pass] == MD5_Hash(tmp)) {
Line 2826:
pawn Код:
PlayerInfo[playerid][pass] = MD5_Hash(tmp);
Line 2860:
pawn Код:
PlayerInfo[playerid][pass] = MD5_Hash(tmp);
Reply
#2

to me, it seems your forgetting an dimension here,

PlayerInfo[playerid][pass][X] where you forgot [X];

find if your dimensions are the right one, and if not, what dimension your missing, in that case, your problem is solved
Reply
#3

theres nothing missing! thats a downloaded code by tAxI, and there was the udb_hash before!
Reply
#4

Код:
if( strcmp(PlayerInfo[playerid][pass], MD5_Hash(tmp), false) == 0)
etc..
Reply
#5

Ok the problem at line 2791 is not anymore, only the others (there i changed nothing)
Reply
#6

i dont want to make it secure, i wanted to make a webinterface for my users where they can login with their password from the server!
Reply
#7

Quote:
Originally Posted by ssǝן‾ʎ
WHAT!? If you want to use passwords you want to make it secure! That's what passwords are for - security!
yes sure but is there a "whirlpool" plugin for php :P
Reply
#8

ok, then i will use wirepool
Reply
#9

mhh... doesnt work?!?!
I loaded the Plugin:
Quote:

plugins Whirlpool.so

The log says that its loaded:
Quote:

[18:53:10] Server Plugins
[18:53:10] --------------
[18:53:10] Loading plugin: Whirlpool.so
[18:53:10]
[18:53:10] ==================
[18:53:10]
[18:53:10] Whirlpool loaded
[18:53:10]
[18:53:10] ==================
[18:53:10]
[18:53:10] Loaded.
[18:53:10] Loaded 1 plugins.

in the code at the top under the includes is:
pawn Код:
native WP_Hash(buffer[], len, const str[]);
and i used them so:
pawn Код:
if( PlayerInfo[playerid][pass] == WP_Hash(buf, sizeof (buf), tmp)) {
and
pawn Код:
PlayerInfo[playerid][pass] = WP_Hash(buf, sizeof (buf), tmp);
But in the Player-Save-File is only a 0 at the position of the password
Reply
#10

what you mean with that?
Edit: now I know
i made it so:
pawn Код:
WP_Hash(buf, sizeof (buf), tmp);
                PlayerInfo[playerid][pass] = buf;
But theres that error:
Quote:

C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2866) : error 006: must be assigned to an array

and at:
pawn Код:
WP_Hash(buf, sizeof (buf), tmp);
              if( PlayerInfo[playerid][pass] == buf) {
is that error (but i think i know where the problem is:
Quote:

C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2795) : error 033: array must be indexed (variable "buf")

I don't know why, but everytime I want to compile now, the compiler crashes!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)