Lua:解析时出现字符串预期错误

时间:2015-03-24 19:32:24

标签: lua

我试图解析PHP页面http://martinz.ru/bash/index.php

function run(msg, matches)
    b = http.request("martinz.ru/bash/index.php")  -- line 8
    local hol = string.sub (b, 1)
    return hol
end

但是控制台吐出错误:

*** lua: plugins/hol.lua:8: bad argument #1 to 'sub' (string expected, got table)

有什么想法吗?

0 个答案:

没有答案