ChaveS
Journeyman
Posts: 69
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2012
Reputation: 0
|
serv.fromtime Script stopped working on new build
I was using this script on 2009 release, now im trying the last nightly build which made this script stop working:
Code:
args <tag.vip>
local.rticks = <SERV.RTICKS.FROMTIME <STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>>
IF <eval <serv.rticks> - <local.rticks>> >= 2592000
....
where tag.vip is 2013/01/01 00:00:00
and i have this
13:34:ERROR:(sys_vip.scp,421)Can't resolve <SERV.RTICKS.FROMTIME 01>
I found the issue
<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
was returning:
2013,01,09,13,49,25
new build:
<STREAT <EXPLODE /,<STRARG <ARGS>>><EXPLODE :,<STREAT <ARGS>>>>
return:
01,0913,44,33
fixed...
"21-01-2011, MrSugarCube
- Fixed #1894: Explode function placing a comma at the beginning of the result."
No need for streat anymore:
<SERV.RTICKS.FROMTIME <EXPLODE /,<STRARG <ARGS>>>,<EXPLODE :,<STREAT <ARGS>>>> is working
(This post was last modified: 01-10-2013 02:07 AM by ChaveS.)
|
|
01-10-2013 01:42 AM |
|
|