.temp:8: 'do' expected near 'in'

Started by TheTinyDeskEngineer, Apr 07, 2021, 11:27 pm

Previous topic - Next topic


The error is coming from this line:
Code Select
for s = 1, i in ipairs(whitelist) doI've done stuff like this before and it's never given this error. I don't think there's anything else needed, since it's complaining about something which should all be on this line.


You seem to have something that is halfway between the two valid types of for loop.

I believe that what you mean is.
Code Select
for s, i in ipairs(whitelist) do