gogglev1.lua:48: '')'' expected (to close ''('' at line 25) near 'end'

Started by TheTinyDeskEngineer, Aug 23, 2021, 04:30 PM

Previous topic - Next topic

TheTinyDeskEngineer

This section of code is giving me a problem, and I have no idea what's wrong.

parallel.waitForAny(
    function() -- rednet functionality
        local sender, sender2, message = nil
        local result = nil
        while true do
            sender, message = rednet.recieve("goggle")
            if message[1] == some string
            end
        end
    end)

gogglev1: c0rL0htc
goggleAPIv1: 35NqhzKq

Lupus590

In the gogglev1 file you have one too many ends, your indentation goes off at line 42 and this looks like it has caused you to put in the extra end.

TheTinyDeskEngineer