Help with account saving
#5

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
PHP код:
 new 
        
Query[600], 
        
DBResult:Result
        
storedip[16], 
        
ip[16
    ;
    
GetPlayerIp(playeridip16); 
    
format(Querysizeof(Query), "SELECT `password`, `IP` FROM `users` WHERE `username` = '%q'"User[playerid][accountName]); 
    
Result db_query(DatabaseQuery); 
    if(
db_num_rows(Result)) 
    { 
        
db_get_field_assoc(Result"IP"storedip16);
        
db_get_field_assoc(Result"password"User[playerid][accountPassword], 129); 
       
        if(
strcmp(ipstoredipfalse))
        {
            
LoginPlayer(playerid); 
            
LoginPremium(playerid);
            return 
1;
        }
       
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD"Login"""grey"Welcome to Express FreeRoam 2.1.\nYour account is registered in our database, Type your password below to log in.\n\nTIP: IF you are not the owner of this account,please type /q and choose another nickname.""Login""Cancel"); 
    } 
    else 
    { 
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD"Register"""grey"Welcome to our updated Express FreeRoam 2.1.\nThis account is not registered in our database,please enter a password to continue.\n\nСЪВЕТ: Make a strong password,so your account will be more secured.""Register""Quit"); 
    } 
    
db_free_result(Result); 
THANK YOU MAN!!!!
THANKSSSS!!!!!
P.S ACCEPT MY FRIEND REQUEST!!!! :*
Reply


Messages In This Thread
Help with account saving - by TaligaroW - 09.09.2018, 16:05
Re: Help with account saving - by Undef1ned - 09.09.2018, 16:18
Re: Help with account saving - by TaligaroW - 09.09.2018, 16:29
Re: Help with account saving - by Undef1ned - 09.09.2018, 16:51
Re: Help with account saving - by TaligaroW - 09.09.2018, 17:00

Forum Jump:


Users browsing this thread: 2 Guest(s)