Posted 09 October 2012 - 06:51 PM
Error is "attempted to compare number with string expected, got number"
and the code is
5 and 6 are the correct values for those two variables, I double checked by making the game print their values to me.
the brackets were added in as an attempted fix, the same error is returned with or without them.
the error is on line 214 [ elseif (curani) < 1 then ]
and the code is
local maxani = splt[5]
local curani = splt[6]
if forwards then
curani = curani + 1
else
curani = curani - 1
end
if (curani) > (maxani) then
curani = 1
elseif (curani) < 1 then
curani = maxani
end
5 and 6 are the correct values for those two variables, I double checked by making the game print their values to me.
the brackets were added in as an attempted fix, the same error is returned with or without them.
the error is on line 214 [ elseif (curani) < 1 then ]