Jump to content




won't get stuck in a loop


11 replies to this topic

#1 warfar

  • Members
  • 22 posts

Posted 04 May 2013 - 10:15 PM

http://pastebin.com/vbrf727m
line 69
turtle doesn't suck anything up
off topic:
heueueuhueueue 69
heuhueuheuheuueue suck

#2 The_Awe35

  • Members
  • 71 posts
  • LocationNerdfightaria Island

Posted 04 May 2013 - 10:36 PM

I would say this is a fine example of a question format not to use. Please ask questions a little more politely, and with more explaining what your problem is.
Your code is very messy. You should define all your variables in one place, and call all your functions with the rest of your code, not in between functions.
However, I don't see anything wrong with it. Are you sure that the slot is empty when it tries to refuel?

#3 warfar

  • Members
  • 22 posts

Posted 04 May 2013 - 10:38 PM

View PostThe_Awe35, on 04 May 2013 - 10:36 PM, said:

I would say this is a fine example of a question format not to use. Please ask questions a little more politely, and with more explaining what your problem is.
Your code is very messy. You should define all your variables in one place, and call all your functions with the rest of your code, not in between functions.
However, I don't see anything wrong with it. Are you sure that the slot is empty when it tries to refuel?
yes

#4 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 04 May 2013 - 10:55 PM

Make it print something after turtle.suckUp(). So you know it's actually running.

#5 warfar

  • Members
  • 22 posts

Posted 04 May 2013 - 10:56 PM

View PostZoinky, on 04 May 2013 - 10:55 PM, said:

Make it print something after turtle.suckUp(). So you know it's actually running.
alright
so it runs the function
it doesn't get to suck
the next time it runs it does

#6 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 04 May 2013 - 11:00 PM

View Postwarfar, on 04 May 2013 - 10:56 PM, said:

it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.

#7 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 04 May 2013 - 11:02 PM

View Postwarfar, on 04 May 2013 - 10:56 PM, said:

it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.


EDIT: Oh, so it's working now?
EDIT #2: Woops, sorry about the repost. Accident :3

#8 warfar

  • Members
  • 22 posts

Posted 04 May 2013 - 11:08 PM

View PostZoinky, on 04 May 2013 - 11:02 PM, said:

View Postwarfar, on 04 May 2013 - 10:56 PM, said:

it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.


EDIT: Oh, so it's working now?
read edit

#9 warfar

  • Members
  • 22 posts

Posted 04 May 2013 - 11:31 PM

nvm fixed it

#10 Zoinky

  • Members
  • 144 posts
  • LocationWellington, New Zealand

Posted 04 May 2013 - 11:48 PM

View Postwarfar, on 04 May 2013 - 11:31 PM, said:

nvm fixed it
What was wrong? Lol

#11 warfar

  • Members
  • 22 posts

Posted 05 May 2013 - 12:01 AM

View PostZoinky, on 04 May 2013 - 11:48 PM, said:

View Postwarfar, on 04 May 2013 - 11:31 PM, said:

nvm fixed it
What was wrong? Lol
i made a function findEmptySlots

#12 wahok

  • Members
  • 7 posts

Posted 05 May 2013 - 11:31 AM

I had the same Problem thx





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users