Webhook discord bug roblox



我有以下脚本错误:尝试调用布尔值尝试调用一个数值

脚本如下:

--Game Info
local SystemName = "TestSystemname"
local WhitelistedServ = false
local OwnerId = game.CreatorId
local GameId = game.GameId
local MaxPlayers = game.Players.MaxPlayers
local GameUrl = "https://www.roblox.com/games/"..GameId
--Webhook sender and message creator in JS
local WebhookUrlServ = ""
local MessageDataServ = {["content"] = "New game started with the whitelist system !"..SystemName
"The Owner Id= "..OwnerId
"Is Game whitelisted ? "..WhitelistedServ
"How Many Players Max? "..MaxPlayers
"The Game Url= "..GameUrl}
MessageDataServ = HttpServ:JSONEncode(MessageDataServ)

谢谢,

我发现了问题,我试图发送一个值,我只需要替换这个

local WhitelistedServ = false
by this
local WhitelistedServ = "false"

和它将工作,值不能在这个脚本中由于某些原因,使与嵌入更好。

相关内容

  • 没有找到相关文章

最新更新