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
0
Attempt to call a nil
Started by coolmark1995, Apr 26 2020 03:34 AM
1 reply to this topic
#1
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
#2
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.
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