including a variable

Blitz3D Forums/Blitz3D Beginners Area/including a variable

That pseudocode in your second post is not nearly enough for us to tell what is going on. Neither the saved data nor the function you posted before make any reference to "SUPERBRICKS" so we need to see exactly what both your save file and function look like now.

I can tell you this much: I am fairly certain the problem is that the data is getting mixed up while you are reading it (eg. line saved into wrong variable) and as a result "s" in CreateBrick is being set to 0.

Just work backwards from the error message: The error is that the image does not exist, but you called CreateImage on the previous line. Well, CreateImage won't work if the dimensions are 0. The dimensions are 0 if s is set to 0. s could be set to 0 if the data is loaded in wrong.