Jump to content




Attempt to call a nil


1 reply to this topic

#1 coolmark1995

  • Members
  • 25 posts

Posted 26 April 2020 - 03:34 AM

Not sure what I am doing wrong but the program wont even start this code is causing the error below
function updateSize()
  width, height = term.getSize()
  rows = math.floor((width - 1) / 25)
  offset = math.floor((width - rows * 25 + 1) / 2)
  surf = surface.create(width, height)
end


#2 Luca_S

  • Members
  • 404 posts
  • LocationGermany

Posted 26 April 2020 - 01:03 PM

Can you please post your complete code and the full error you are getting?
Without seeing all the code I'd guess that surface.create is not defined.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users