how about in the part where you load the image. you put:Zitat:
Zitat von HaxxBlaster
i'm not sure if it'll work, its an educated guess.Code:elseif error("Autostart error")
do return
end
end
Printable View
how about in the part where you load the image. you put:Zitat:
Zitat von HaxxBlaster
i'm not sure if it'll work, its an educated guess.Code:elseif error("Autostart error")
do return
end
end
I don't see why that would work at all.
But where will the "elseif" fit in to?
It will give no use if there is no way to see if the image is no able to be load, it it would get that error, there is no way to "return" back.
I have thought about this much, and the only way to solve my problem is to know if the picture is succesfully loadable or not, but no one seems to know sheit about it.
hmmm.... I probably could do it... I just need the Lua Source adn edit the blitting function/prototype to an 'int' instead of a 'void', that way it will retrun something... i may look into it...
Thanks man!
Mayb something like this:Zitat:
Zitat von HaxxBlaster
I'm not the best lua coder...Code:All your code here...
Then
screen:blit(x,y,xx.png)
if screen:blit(x,y,xx.png) == false then
screen:print(x,y,"You have not any saved work.", color)
end
How do you get netlib v1.4 to work?
Hi can anyone please help me with my program on page 220? I changed the screen.flip() but it still acts really weird.
PSPduh:
I tryed that first of all my ideas to solve my problem, it doesn't work.
I think that it is what SGC is going to take a look at.
Hey, nevermind about my program, i fixed it now by putting my whole function fight() as a loop, and put in a screen:clear() too. Thanks though.
you didnt post any code, so I assumed you made an 'if' statement out of the skip-of-nothing-is-there part of your app.Zitat:
Zitat von HaxxBlaster
:( sorry, i'm no help to you here...I'm confident SG57 can fix your problem though!