ERROR! No Matching Function for Overloaded draw
Stack Traceback:
[C:] in Function 'draw'
main.lua:40: in function main.lua:38
And I have NO clue what this means.
Heres the Code:
Code: Select all
function load()
Font = love.graphics.newFont(love.default_font, 20)
love.graphics.setFont(Font)
Tab = {}
Message = "Marlowe"
Number, ENumber = 200,300
for x = 1, string.len(Message) do
table.insert(Tab, {})
table.insert(Tab[1], string.sub(Message, x, x))
end
for i,v in ipairs(Tab) do
if (i == 1) then
v[1] = Number
v[2] = ENumber
v[3] = math.random(1,360)
else
v[1] = Tab[i - 1][1] + 20
v[2] = ENumber
v[3] = math.random(1,360)
end
end
end
function update()
for i,v in ipairs(Tab) do
v[3] = v[3] + 1
if (v[3] >= 360) then
v[3] = 0
end
end
end
function draw()
for i,v in ipairs(Tab) do
love.graphics.draw(v, v[1], v[2], v[3])
end
end
Help?