Every time I try to load my script with LPE v8 on my PSP I get this exact error:
Error: index.lua:27: bad argument #3 to 'blit' (number expected, got boolean)
Press start to restart
I'm usually able to fix errors in Lua by myself, since I've done some Lua before, but I just can't seem to figure out what's wrong. I've highlighted the line in question and the image I defined to appear with it. Anyone know what's wrong?
Here's my code:
-----------------------------------------------------------------------------------------------
black = Color.new(0, 0, 0)
white = Color.new(255, 255, 255)
darkred = Color.new(201, 0, 0)
PsPBGImg = Image.load("images/DrumsetNoLit.png")BassKick01 = Wav.load("sounds/BassKick01.wav", 1)
CymbalBellShort = Wav.load("sounds/CymbalBellShort.wav", 2)
CymbalCustMed = Wav.load("sounds/CymbalCustMed.wav", 3)
DrumRimHit = Wav.load("sounds/DrumRimHit.wav", 4)
SnareHit01 = Wav.load("sounds/SnareHit01.wav", 5)
SnareHit02 = Wav.load("sounds/SnareHit02.wav", 6)
YBeechCust01 = Wav.load("sounds/YBeechCust01.wav", 7)
YBeechCust02 = Wav.load("sounds/YBeechCust02.wav",

screen:print(190, 130, "Welcome to Drum Pad", darkred)
screen:print(190, 140, "Program by HadesMinion", darkred)
screen:print(190, 150, "Scripted in Lua", darkred)
screen.flip()
screen.waitVblankStart(300)
screen:clear()
screen:print(190, 130, "Loading...", darkred)
screen:print(15, 250, "Controls are displayed on Drum Pad", darkred)
screen:print(15, 260, "Once DP Loads, Press Select for a screen shot.", darkred)
screen.flip()
screen.waitVblankStart(300)
screen:clear()
screen.flip()
while true do
screen:blit(0, 0, PsPBGImg, false) pad = Controls.read()
if pad:l() then
CymbalBellShort.play(false, 2)
waitVblankStart(60)
end
if pad:r() then
CymbalCustMed.play(false, 3)
waitVblankStart(60)
end
if pad:left() then
SnareHit01.play(false, 5)
waitVblankStart(60)
end
if pad:circle() then
SnareHit02.play(false, 6)
waitVblankStart(60)
end
if pad:right() then
YBeechCust02.play(false,

waitVblankStart(60)
end
if pad:square() then
DrumRimHit.play(false, 4)
waitVblankStart(60)
end
if pad:down() then
BassKick01.play(false, 1)
waitVblankStart(60)
end
if pad:cross() then
YBeechCust01.play(false, 7)
waitVblankStart(120)
end
if pad:start() then
screen:save("screenshot.png")
end
if pad:select() then
break
end
end
-----------------------------------------------------------------------------------------------
What I'm doing is making a small Drum Pad application, but I can't get the image for the pad to show up. This is a very early... EARLY stage version. The final will have certain parts light up when you press the corresponding button, etc, and maybe have more instruments, but for now I have to find out what the f*ck is wrong with my code

PS: I couldn't use CODE tags because the COLOR tags wouldn't show up.