need help always wrong
#1

pawn Код:
public OnPlayerLogin(playerid,password[])
{
    new h_password[ 129 ];
    WP_Hash( h_password, sizeof ( h_password ), password );
    if(strcmp ( h_password, pData[ playerid ][ pPassword ] ) )
    {
        INI_ParseFile(UPath ( playerid ), "LoadUser_%s", .bExtra = true, .extra = playerid);
        SendClientMessage(playerid,C_GREEN,"Correct Password");
    }
    else
    {
        new dbug[500];
        format(dbug,sizeof(dbug),"Password %s [ %s ]",password,h_password);
       
        print(dbug); // thats for debuging
        SendClientMessage(playerid,C_RED,"Wrong Password");
        SPD(playerid,D_LOGIN,PASSWORD,""CSERVER"",""CWHITE"Please Enter Your Password   ToLogin","Proceed","Quit");
    }
    return 1;
}
I always got wrong password i need help
Reply


Messages In This Thread
need help always wrong - by RicaNiel - 03.05.2012, 00:07
Re: need help always wrong - by ReneG - 03.05.2012, 00:08
Re: need help always wrong - by RicaNiel - 03.05.2012, 00:11
Re: need help always wrong - by RicaNiel - 03.05.2012, 01:24
Re: need help always wrong - by SuperViper - 03.05.2012, 01:39

Forum Jump:


Users browsing this thread: 1 Guest(s)