udbhash problem +rep
#1

PHP код:
    switch( dialogid )
        {
            case 
DIALOG_REGISTER:
            {
                if (!
response) return Kick(playerid);
                if(
response)
                {
                    if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT""COL_WHITE"Регистриране...",""COL_RED"Ти си въвел невалидна парола.\n"COL_WHITE"Напишете вашата парола за да регистрирате нов акаунт.","Регистрирай","Излез");
                    new 
INI:File INI_Open(UserPath(playerid));
                    
INI_SetTag(File,"data");
                    
INI_WriteInt(File,"Password",udb_hash(inputtext));
                    
INI_WriteInt(File,"Cash",0);
                    
INI_WriteInt(File,"Admin",0);
                    
INI_WriteInt(File,"Kills",0);
                    
INI_WriteInt(File,"Deaths",0);
                    
INI_WriteInt(File,"XP",0);
                    
INI_WriteInt(File,"Infected",0);
                    
INI_WriteInt(File,"Rank",0);
                    
INI_WriteInt(File,"Muted",0);
                    
INI_WriteInt(File,"Vote",0);
                    
INI_WriteInt(File,"Credits",0);
                    
INI_WriteInt(File,"Armour",0);
                    
INI_Close(File);
                    
ShowPlayerDialog(playeridDIALOG_SUCCESS_1DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Поздравления, Вие вече сте част от Zombie RPG вашия акаунт е създаден успешно!","Ок","");
                            }
            }
    case 
DIALOG_LOGIN:
            {
                if ( !
response ) return Kick playerid );
                if( 
response )
                {
                    if(
udb_hash(inputtext) == PlayerInfo[playerid][Pass])
                    {
                        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
                        
GivePlayerMoney(playeridPlayerInfo[playerid][Cash]);
                        
ShowPlayerDialog(playeridDIALOG_SUCCESS_2DIALOG_STYLE_MSGBOX,""COL_WHITE"Успешно!",""COL_GREEN"Вие се логнахте успешно!","Ок","");
                    }
                    else
                    {
                        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""COL_WHITE"Логин",""COL_RED"Вие сте въдели грешна парола.\n"COL_WHITE"Въведете вашата парола преди да се логнете.","Логин","Излез");
                    }
                    return 
1;
                }
            }
        } 
This is my code i try to remove the udb_hash funcion but give me error
PHP код:
error 035argument type mismatch (argument 3
Who can help me i give Rep
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Don't use udb_hash, use something like Whirlpool - definitely don't use NO hashing!
Ok, but do you can help me i dont know how to remove udb_hash i see tutorial in the forum for this register system
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
I'll post this PM here for everyone else to see so that they never go on this person's server ever:



DO NOT TRUST THIS PERSON!
well a person know what you think I want to steal passwords players just got an idea for lost password feature so I can change the password of the player if someone look for her but if you screw me go
Reply
#4

If you need to set there password, hash it whilst setting it(command)
Reply
#5

Quote:
Originally Posted by C00K13M0N$73R
Посмотреть сообщение
If you need to set there password, hash it whilst setting it(command)
Yes,i need command to can change player passwords but to work them player offline my save directory is Accounts/%s.ini
%s=User Name
Reply
#6

Dude, as ****** said, use Whirlpool, and follow a tutorial for changing password.IT JUST ain't so hard.AND don't use udb_Hash, I used to use it when I was a VERY beginner, and I almost received an infraction for opening too many topics claiming that I can't login on my server, with my account.UDB_Hash is buggy.
Reply
#7

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
Dude, as ****** said, use Whirlpool, and follow a tutorial for changing password.IT JUST ain't so hard.AND don't use udb_Hash, I used to use it when I was a VERY beginner, and I almost received an infraction for opening too many topics claiming that I can't login on my server, with my account.UDB_Hash is buggy.
I know at times I can not log in to your account or delete account to login
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)