Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-20-2011, 11:21 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Time and MOD

I have this, and the seconds and mins are going right, but its almost like the hours, days, and year aren't MOD at all, being it shows up 797 hours and 51 days and 1 year and there are definitely not that many seconds.

I was just trying to calculate the seconds up to years, without showing more than an actual min, hour, day, week, and year, in a year, allowed.

PHP Code:
function configureOnlinetime(time) {
  
//calculate time frames
  
temp.seconds int(time 60);
  
temp.minutes int((time 60) % 60);
  
temp.hours int((time 3600) % 3600);
  
temp.days int((time 86400) % 86400);
  
temp.weeks int((time 604800) % 604800);
  
temp.years int((time 3153600) % 3153600);
  
//display time
  
Profile_TextEdit23.text = @ years " yrs," weeks 
    
" wks," days " days," 
    
hours " hrs," minutesro " mins," 
    
seconds " secs";


time = the seconds i have.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 +2. The time now is 11:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.