Lua コードで次のエラーが発生します。
フィールド '?' にインデックスを付けようとしています (ゼロ値)
以下の太字の行で発生します。どうすれば修正できますか?
function SendMessageToAdmins(color1, color2, color3, msg)
for i = 0, maxSlots - 1 do
if Account[i] and Account[i].Admin >= 1 or Account[i] and Account[i].GameMaster >= 1 then
SendPlayerMessage(i, color1, color2, color3, string.format("%s", msg))
end
end
end