Alright, I did fix the issue where it was not sending multiple fields. However, I needed to add a value in there for it to send the field. How could I make is so that it would say N/A if there were no players on that team?
i think you can do
local table = --get team players
if table then
--send players
else
--send N/A
end
oops I got it the wrong way
How would I use that here, though.
wait you are using tables to store the players in a team right?
Yes. I’m adding every player in that team to a table. Then, logging them to Discord.
for every team or just every player in the server
Yeah, I’m logging player for every team.
so if it is different tables for each team you can check the table’s length, and if the table had nothing in it say “N/A”
do you mind giving me an example of how it should loook like?
local length = 0
for _ in pairs(T) do length += 1 end
then you can check the length
1, you should change the URL of your webhook, other people can see it
2, I think you should contact all the values beforehand, so when you are setting the value you just set it to the string you stored it before, do the checks before you set them
It works, thank you so much!!!
don’t forget to change your URL, people might be able to spam with the URL I think
Alright, as the URL is only showing a bit of it.