Jump to content




test:8: attempt to get length of nil


  • You cannot reply to this topic
5 replies to this topic

#1 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 01 April 2013 - 05:28 AM

pastebin: pastebin.com/GpcYAmYg

if i pass the send arg it works, it errors with the receive command after the send computer start sending the msg

layout:

C = computer
R = redstone
RRRRRRRR
R R
C C

#2 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 01 April 2013 - 05:39 AM

I think line 198 is where the problem is. "result" is still nil (as it was declared on line 145). Your program don't even think about changing "result" - if it did, you would get "attempt to concat string and nil"s. Not sure about what is the real problem yet, but I hope this will help. The keyword is "yet".

#3 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 01 April 2013 - 08:21 AM

it donts work same error after deleting the line saing result = nil

#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 01 April 2013 - 08:37 AM

http://www.computerc...and-string/]Why didn't you keep it in one thread?[/url]

Change result = nil to result = ''

#5 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 01 April 2013 - 09:22 AM

View PostremiX, on 01 April 2013 - 08:37 AM, said:

http://www.computerc...and-string/]Why didn't you keep it in one thread?[/url]

Change result = nil to result = ''
Done! replaced result = nil on line 145 to result = "", now it doesnt display any error but it sends only the ping singnal and then it finish

And im putting this with computercraft so i cannot edit them and everytime i post a new one is because i recoded everything(or a whole part)

#6 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 01 April 2013 - 03:16 PM

nobody help?





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users