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

Trello, sending multiple text?

Asked by 6 years ago
Edited 6 years ago
ap = require(game.ServerScriptService.TrelloAPI)
BaordID = ap:GetBoardD("ECMH Applications")
ListID = ap:GetListID("Pening", BaordID)

while true do
    wait(0.01)
    if script.Parent.Parent.Answers.Seven.Value ~= "" then
        CardID = ap:AddCard("Nurse || "..game.Players.LocalPlayer.Name, 
        "**Why do you want to work at Erik Cassel Memorial Hospital? **"..script.Parent.One.Value.."\n\n"..
        "**Do you have medical experience? If so, what/where? **"..script.Parent.Two.Value.."\n\n"..
        "**What do you do if someone flat lines? **"..script.Parent.Three.Value.."\n\n"..
        "**What rank are you currently in Erik Cassel Memorial Hospital? **"..script.Parent.Four.Value.."\n\n"..
        "**If there is a psych patient running around, what do you do? **"..script.Parent.Five.Value.."\n\n"..
        "**How do you deal with Exploiters ?**"..script.Parent.Six.Value.."\n\n"..
        "**Will you listen to HRs?**"..script.Parent.Seven.Value, ListID)
    end
end

It comes up with blue squiggly lines, https://gyazo.com/8f19ba7b1a06cd2fdd824e649c7ce1f9

Sorry for not saying hi or anything, really tired.

Thanks,

0
Suggest adding a button to post the request, instead of sending 60 requests/s to the trello website. RubenKan 3615 — 6y
0
Can I use localscripts for trello? Starhawke_r 11 — 6y
0
You can't send HTTP requests from the client. You can simply send the data over to the server using a remote event. RubenKan 3615 — 6y
0
"GetBoardD" should be "GetBoardID" Thundermaker300 554 — 6y

1 answer

Log in to vote
0
Answered by
TrippyV 314 Donator Moderation Voter
6 years ago

It's because your string spans multiple lines without any indentation.

Try this:

        CardID = ap:AddCard("Nurse || "..game.Players.LocalPlayer.Name,
         "**Why do you want to work at Erik Cassel Memorial Hospital? **"..script.Parent.One.Value.."\n\n"..
         "**Do you have medical experience? If so, what/where? **"..script.Parent.Two.Value.."\n\n"..
         "**What do you do if someone flat lines? **"..script.Parent.Three.Value.."\n\n"..
         "**What rank are you currently in Erik Cassel Memorial Hospital? **"..script.Parent.Four.Value.."\n\n"..
         "**If there is a psych patient running around, what do you do? **"..script.Parent.Five.Value.."\n\n"..
         "**How do you deal with Exploiters ?**"..script.Parent.Six.Value.."\n\n"..
         "**Will you listen to HRs?**"..script.Parent.Seven.Value, ListID)

Bit ugly because I used spaces, but it'll get the job done.

If you have any problems, be sure to comment so we can figure it out.

Ad

Answer this question