Mind you, I can see a "refuel" script elsewhere in your pastebin account, but I can't see how it'd generate this error. Beats me as to whether it matches the one you're actually using...?
(Edit: Ah, I got ninja'd, and it apparently is.)
One problem I
can see with it is that refuel attempts to loadfile refuel. That'll spark an infinite loop which'll probably lead to the system shutting down. I'm not entirely sure why you're doing this, either; I see you're trying to assign what refuel() returns to fuelLevel at some point, but refuel() doesn't actually return
anything, so....
You can also pack down this sort of thing:
local inputs = {...}
local crop, seed, fullyGrown, sleepTime --variables passed in (inputs)
.
.
.
for k, v in pairs(inputs) do
if k == 1 then crop = v end
if k == 2 then seed = v end
if k == 3 then fullyGrown = v end
if k == 4 then sleepTime = v end
end
... like so:
local crop, seed, fullyGrown, sleepTime = ...
Edited by Bomb Bloke, 14 April 2016 - 12:08 AM.