Raised This Month: $ Target: $400
 0% 

unixtime + optimizaciones


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-01-2012 , 04:59   unixtime + optimizaciones
#1

Se podría optimizar?

PHP Code:
public clcmd_vencimientoid )
{
    if( 
g_adminid ] <= )
        return 
PLUGIN_HANDLED;
        
    new 
diashorasminutosvencimiento;
    
    
vencimiento = ( get_systime( ) - g_vencimientoid ] );
    
    while( ( 
vencimiento 86400 ) >= )
    {
        
vencimiento -= 86400;
        
dias++;
    }
    
    while( ( 
vencimiento 3600 ) >= )
    {
        
vencimiento -= 3600;
        
horas++;
    }
    
    while( ( 
vencimiento 60 ) >= )
    {
        
vencimiento -= 60;
        
minutos++;
    }
    
    
ChatColorid"!yTu admin !teamx%d !yvence en !team%d !ydias !team%d !yhoras!y y !team%d !yminutos."g_adminid ], diashorasminutos );

    return 
PLUGIN_HANDLED;

__________________

Last edited by Neeeeeeeeeel.-; 06-01-2012 at 05:00.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode