我正在開發一個腳本,這是我到目前爲止有:Lua的HTTP PostAsync
local hs = game.HttpService
local url = "http://sugargrovetemp.comli.com/NiceAdmin/currentusers.php"
local data = {
["name"] = player.Name,
["userid"] = player.UserId
}
data = hs:JSONEncode(data)
gotback = hs:PostAsync(url, data)
data = hs:JSONDecode(data)
print("successfully ammended "..player.Name..","..player.UserId.."to the php file as string!")
我是新來的這整個PostAsync
的事情,我想知道如果有人能幫助我嗎?
你需要解釋什麼_doesn't_任何人都無法幫助你。 – Oka