It's something wrong here?
#1

Hello there, someone from my server told me that the Auto Login it doesn't work anymore.
I left this feature in good shape. Everything worked when i tested or when i made it.
Now, i haven't checked anymore this Auto Login because there was no problem with it untill now.
I haven't worked at this feature or changed something that contains auto login. I will show you my code and please tell me your opinion about it:

PHP код:
-> This code is on "public OnPlayerRequestClass( playerid, classid )" 
because i want that the dialog to appear here.
if( 
PlayerInfoplayerid ][ p_first_login ] == )
{
    new 
query2000 ];
    
formatquerysizeofquery ), "SELECT * FROM `Accounts` WHERE `Name` = '%s'"PlayerNameplayerid ) );
    
mysql_pquerydatabasequery"OnAccountCheck""d"playerid );
    
PlayerInfoplayerid ][ p_first_login ] = 1;

PHP код:
function OnAccountCheckplayerid )
{
    
eString] = EOS;
    
gAccountCheckplayerid ] = true;
    new 
RowspField20 ];
    
cache_get_row_countRows );
    if( 
Rows )
    {
        
cache_get_value_name0"IP"pField20 );
        
cache_get_value_int0"AutoLogin"PlayerInfoplayerid ][ p_auto_login ] );
        if( !
strcmpGetPlayerIPExplayerid ), pFieldtrue ) && PlayerInfoplayerid ][ p_auto_login ] == )
        {
            new 
query2000 ];
            
formatquerysizeofquery ), "SELECT * FROM `Accounts` WHERE `Name` = '%s'"PlayerNameplayerid ) );
            
mysql_pquerydatabasequery"OnLoginDone""d"playerid );
        }
        else
        {
            
// Login Dialog
        
}
    }
    else
    {
        
// Register Dialog
    
}
    return 
1;

Reply
#2

This problem has been solved on 10.05.2018, there was a problem with the update of the Player IP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)