Search found 1 match

by AlgorithmEnigma
Sun Sep 21, 2014 1:52 am
Forum: Support and Development
Topic: self (A nil value)
Replies: 4
Views: 5075

self (A nil value)

Ok so here is the code

Code: Select all

function love.update(dt)
if gui.Button({text = "Test",pos = {100, 100}}) then
self:remove()
end
end
and the error

Code: Select all

main.lua:26: Attempt to index global self(a nil value)
why does self not work?