Last login
#1

Hi, i wanted to add Last login to /stats, actually i have added it but when i try to update it every login i get weird number

Code:
PHP код:
new dayxmonthxyearxquery[280];
    
getdate(yearxmonthxdayx);
    
format(pData[playerid][RLastLogin], 12"%d/%d/%d"dayxmonthxyearx);
    
mysql_format(mysqlquerysizeof(query), "UPDATE `players` SET `RLastLogin` = %e WHERE `ID` = %d"
        
pData[playerid][RLastLogin], pData[playerid][ID]);
    
mysql_tquery(mysqlquery); 
After update the query:

Код:
Last Login: 0.007433102
Reply
#2

PHP код:
mysql_format(mysqlquerysizeof(query), "UPDATE `players` SET `RLastLogin` = '%e' WHERE `ID` = %d",  
        
pData[playerid][RLastLogin], pData[playerid][ID]); 
    
mysql_tquery(mysqlquery); 
Reply
#3

Quote:
Originally Posted by iLearner
Посмотреть сообщение
PHP код:
mysql_format(mysqlquerysizeof(query), "UPDATE `players` SET `RLastLogin` = '%e' WHERE `ID` = %d",  
        
pData[playerid][RLastLogin], pData[playerid][ID]); 
    
mysql_tquery(mysqlquery); 
Thanks i didn't notice that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)