This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
The Ironist's profile picture

Bios:366: [string "Gui"]:143: '=' expected keeps

Started by The Ironist, 02 July 2015 - 12:55 AM
The Ironist #1
Posted 02 July 2015 - 02:55 AM
I keep on trying to fix this but I get the same error as in the topic please help and here is my code:


runTime = function()

while running do
event, button, x, y = os.pullEvent("mouse_click")

if _ms == 0 and button == 1 and x < 5 and y == 1 then
drawMenu1()
_ms = 1
elseif _ms == 1 and button == and y == 2 and x > 5 then
stop()
elseif _ms == 1 and button == 1 and x < 5 and y == 1 then
init()
elseif _ms == 0 and _rcm == 0 and button == 2 then
_rcm = 1
drawRightClickMenu(x ,y)
Lyqyd #2
Posted 02 July 2015 - 03:02 AM
Please post the whole code. This code obviously isn't 143 lines long. You can post it on pastebin and provide a link here, to maximize convenience.
The Ironist #3
Posted 02 July 2015 - 03:54 AM
Please post the whole code. This code obviously isn't 143 lines long. You can post it on pastebin and provide a link here, to maximize convenience.

Here is the Link: http://pastebin.com/PmD4qCG9
Lyqyd #4
Posted 02 July 2015 - 05:50 AM
Ahhh, the line right below the line you've marked has nothing to compare button against.
The Ironist #5
Posted 02 July 2015 - 06:05 AM
Ahhh, the line right below the line you've marked has nothing to compare button against.
Thanks! I did not see that because it kept saying line 143 so I focused on that line.
The Ironist #6
Posted 02 July 2015 - 07:55 PM
Ok so I compared button but it still gives me the same error.
Rougeminner #7
Posted 02 July 2015 - 08:51 PM
Ok let me take a look
Edited on 02 July 2015 - 06:56 PM
Rougeminner #8
Posted 02 July 2015 - 08:57 PM
Line 74 u have a space in between it should look like this term.setBacgroundColor() not term.setBackgrounf Color()