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

Help with Nav program

Started by Chain99, 22 June 2014 - 08:13 PM
Chain99 #1
Posted 22 June 2014 - 10:13 PM
Hi all,
I dont know why this isnt working. It isnt working at line 121.
sincerely, Chain

Here is the code:http://pastebin.com/9aRk85vd
Lyqyd #2
Posted 22 June 2014 - 11:02 PM
"Isn't working" isn't a useful description. Are you getting an error?
Chain99 #3
Posted 22 June 2014 - 11:11 PM
I found the answer, I was trying to compare strings. I changed it to string.find(dx,positive).

"Isn't working" isn't a useful description. Are you getting an error?
I said it isn't working because it was doing exactly that, not working. I said it wasn't working at line 121. I was trying to compare strings. Thanks for responding though! :)/>
Edited on 22 June 2014 - 09:13 PM
Lyqyd #4
Posted 22 June 2014 - 11:18 PM
Comparing strings works just fine.

For reference, it's better to describe what you expect it to do and what it's actually doing so that we have a better place to start than just "isn't working". We can read the code fine, but we can't always tell what you intended when you wrote it, so if something is wrong, it's good to tell us what you think it should be doing and what it actually does.