找回密码
 注册
搜索
查看: 741|回复: 4

mush 运行做洪7公任务时停下来了,不知道该怎么解决

[复制链接]
门派:桃花岛
发表于 2023-8-19 09:36:23 | 显示全部楼层 |阅读模式
Run-time error描述为:
[string "Script file"]:2344: attempt to perform arithmetic on local 's' (a string value)
stack traceback:
        [string "Script file"]:2344: in function <[string "Script file"]:2304>
        (tail call): ?
        (tail call): ?
门派:桃花岛
 楼主| 发表于 2023-8-19 10:39:42 | 显示全部楼层
Run-time error
World: tj2.sjever.net
Function/Sub: haltok called by trigger
Reason: 正在处理触发器 "check_halt1"
[string "Script file"]:2344: attempt to perform arithmetic on local 's' (a string value)
stack traceback:
        [string "Script file"]:2344: in function <[string "Script file"]:2304>
        (tail call): ?
        (tail call): ?
脚本错误处的上下文:
2340 :            else
2341 :               local s = f:read()
2342 :               f:close()
2343 :               if s ~= os.date("%Y%m%d%H") then
2344*:                  if os.date("%Y%m%d%H") - s >= 100 then
2345 :                              local x=tostring(os.date("%Y%m%d%H"))
2346 :                                  local y1=tonumber(string.sub(x,-4,-3))
2347 :                                  if y1==1 then
2348 :                             local y=tonumber(string.sub(x,-2,-1))
门派:天龙寺
发表于 2023-8-19 10:46:40 | 显示全部楼层
mushs根目录下面,新建一个hqgzc_mark_xxx,XXX为你的id,时间填上比如2023081908,文本文档的格式。
门派:天龙寺
发表于 2023-8-19 10:47:24 | 显示全部楼层
这是机器没有读取到你的时间记录文件。  
门派:桃花岛
 楼主| 发表于 2023-8-19 14:11:25 | 显示全部楼层
zhaoziyu@ts2 发表于 2023-8-19 10:47
这是机器没有读取到你的时间记录文件。

好的,谢谢大佬
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-5-1 07:52 , Processed in 0.026744 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表