i get this error
orangefarm/Server/main.lua:190:attempt to compare number with nil

Can you share more details like
orange.amount, processingAmount
and line: 190
The error is literly what is is saying. It is trying to compare a number in this case the 1 with a nil value and that is not possible. So amount = nil and amount gets its value from orange.value. So orange.amount doesnt have a value.
-This is line 190, im very new to scripting so i dont know where the problem is in script, can you pls help me guys?
Alright,
Your issue is in line 190 because you had space between > to =
Copy this code and replace it or just remove the space between > to = .
elseif orangejuice.amount >= 1 then
Sadly i still get this error
“[script:orangefarm] SCRIPT ERROR: @orangefarm/Server/main.lua:190: attempt to compare number with nil”
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

