Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Trello api :getcardsinlist error?

Asked by 5 years ago
Edited 5 years ago

token and api key are correct script:

-- Sample Ban Script
print(1)
local API = require(game.Workspace.TrelloAPI:WaitForChild("TrelloAPI"))
print(2)
local BoardID = API:GetBoardID("Cafe global admin")
print(3)
local ListID = API:GetListID("Global ban")
print(4)
local Banned = API:GetCardsInList(ListID) -- line 10
print(5)

function checkBanned(name)
    local isBanned = false
    print(8)
    for i,v in pairs(Banned) do
        if v.name == name then
            isBanned = true
        end
    end

    return isBanned
end

game.Players.PlayerAdded:connect(function(player)
    if checkBanned(player.Name) == true then
        player:Kick("Banned from the game")
    end
end)

trelloapi(line 230):

function HS:JSONDecode(tab)
    local rhs=game:GetService("HttpService");
    return rhs:JSONDecode(tab) -- line 230
end

trelloapi(line 330):

function T:GetCardsInList(lid)
            local url
            if Private then
                getAddon()
                url="https://api.trello.com/1/lists/"..tostring(lid).."/cards"..addon
            else
                 getAddon()
                 url="https://api.trello.com/1/lists/"..tostring(lid).."/cards"..addon
            end
            local re=HS:GetAsync(url,true)
            local dat=HS:JSONDecode(re) -- line 330
        return dat
    end
0
because it is convenient. and i can acess it anywhere DilanALX12345678901 7 — 5y
0
You meant inconvenient? Have you even read the link what it says. "Pasting a picture of an error or an exception is not helpful. It is not required to prove that the error happened – people are trusted when they state this fact within the question. It is the details omitted by these images that is the problem. " programmerHere 371 — 5y
0
maybe actually helping him will do the thing xXLuka_XD 103 — 5y

Answer this question