The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Real Time
Author Message
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: Real Time
since the script doesn't work properly....u say that sometimes it works, sometimes not....my idea is that the timer check comes too late. So my idea is to use timerD instead of timer that checks every tenth of sec.
since this check is more heavy i'll start doing it only 10 mins before 16.00.

Code:
[ITEMDEF i_real_timespameris]
NAME=Real TimeL
ID=i_floor_marble
  
ON=@CREATE
TIMER=1
COLOR=04af
ATTR=attr_invis

ON=@TIMER
TIMERD=1 //TimerD more precise
IF STRMATCH("*16:00","<rtime.hoursek>")
serv.newitem i_bandage
NEW.P = 4304,984
NEW.UPDATE
TIMER=3000*24 // since u have to do every 24 hours i'll put the timerd fast check after 23 hours and 50mins
ELSE
SAY <RTIME.HOURSEK>
endfor   // <- ???
RETURN 1
ENDIF



[FUNCTION rtime.hoursek]
return <strsub 10 6 <serv.rtime>>

try and lemme know if it works.

If it works, the matter is only about the timer check, and u can improve my mod in some ways after that ^^
(This post was last modified: 05-19-2012 06:27 PM by Crusader.)
05-19-2012 06:26 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Real Time - Alias - 05-19-2012, 06:00 PM
RE: Real Time - Crusader - 05-19-2012 06:26 PM
RE: Real Time - admin phoenix - 05-20-2012, 01:23 AM
RE: Real Time - Alias - 05-21-2012, 06:14 PM
RE: Real Time - admin phoenix - 05-21-2012, 07:59 PM
RE: Real Time - Alias - 05-21-2012, 09:49 PM
RE: Real Time - admin phoenix - 05-21-2012, 10:25 PM
RE: Real Time - Alias - 05-21-2012, 11:43 PM
RE: Real Time - Alias - 05-24-2012, 05:11 PM
RE: Real Time - admin phoenix - 05-24-2012, 07:57 PM
RE: Real Time - Alias - 05-24-2012, 10:18 PM
RE: Real Time - admin phoenix - 05-24-2012, 10:39 PM
RE: Real Time - Alias - 05-24-2012, 11:23 PM
RE: Real Time - admin phoenix - 05-24-2012, 11:52 PM
RE: Real Time - Alias - 05-25-2012, 12:08 AM
RE: Real Time - admin phoenix - 05-25-2012, 01:21 AM
RE: Real Time - Alias - 05-25-2012, 01:59 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)