726 posts
Location
Rem is best girl
Posted 02 July 2016 - 08:05 AM
Im just trying to use the windows api to do something and this is my code
local siteWindow = window.create(term.current(),1,4,50,18)
but it just says attempt to call nil.
idk why tho XD Halp
121 posts
Posted 02 July 2016 - 10:02 AM
Is that all your code?
It works ok for me.
7083 posts
Location
Tasmania (AU)
Posted 02 July 2016 - 12:31 PM
The error's telling you that "window" is something that can be indexed, but "create" isn't a function within it. That suggests you've gone and overwritten the regular window API pointer with something else.
Reboot the computer, and if the problem persists, check the startup file.
726 posts
Location
Rem is best girl
Posted 02 July 2016 - 01:43 PM
you've gone and overwritten the regular window API pointer with something else.
but i havent ;-;
Any mods that may cause this?
wait…….
I think i know why
(i doubt it tho)
ya i found out why. I had a table called window ;-;
121 posts
Posted 02 July 2016 - 07:16 PM
ya i found out why. I had a table called window ;-;
Thats why you should give all the code to begin with :P/>
726 posts
Location
Rem is best girl
Posted 02 July 2016 - 08:12 PM
:)/> its alot of code
121 posts
Posted 02 July 2016 - 08:41 PM
You could always upload it to pastebin ;)/>