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

What is wrong with this...?

Asked by
IcyEvil 260 Moderation Voter
10 years ago

It says I need an End but if I have it, it says that 'call' is an Unknown global 'call' so Im confused.

for _,v in pairs(game.Players:GetChildren()) do
local HighAdmins = {"EmperorVolvax"}
local LowAdmins = {""}
function tableContains(t, value)
    for _, v in pairs(call) do-- Call there
        if v == value then 
            return true
        end
    end
    return false
end
end

1 answer

Log in to vote
0
Answered by 10 years ago

In the for loop, you use a variable named call. This doesn't seem to previously be defined in your script. If you have, try making it a local.

0
Its The Variables Like, for, if, then, while,true, do, and, or, until, return, false, So I dont understand what you mean by saying 'Define' It. IcyEvil 260 — 10y
0
Call is not defined meaning it's a nil value. It's not a defined variable. Tkdriverx 514 — 10y
Ad

Answer this question