Hello friends, what is wrong with this code? I do not know why it does not work
This code is for getting online users
on click
This code is for getting online users
function onlineuser(web)
local web = web or 'http://express-news.byethost14.com/views/index.php';
local ret;
local online;
local pip = "";
ret =HTTP.Submit(web,{},SUBMITWEB_GET, 20, 80, nil, nil);
if ret ~= "" then
ip=ret:match("Online: %d");
if online ~= nil and ret ~= online then
pip = online;
end
else
pip = "";
end
return pip;
end
local online=GetPublicIP(webip);
Input.SetText("Input1", online);