ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: TheTinyDeskEngineer on Aug 23, 2021, 04:30 PM

Title: gogglev1.lua:48: '')'' expected (to close ''('' at line 25) near 'end'
Post by: TheTinyDeskEngineer on Aug 23, 2021, 04:30 PM
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
Title: gogglev1.lua:48: '')'' expected (to close ''('' at line 25) near 'end'
Post by: Lupus590 on Aug 23, 2021, 06:18 PM
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.
Title: gogglev1.lua:48: '')'' expected (to close ''('' at line 25) near 'end'
Post by: TheTinyDeskEngineer on Aug 23, 2021, 08:50 PM
Thank you, the error's gone now.