BMP loading code, corruption?

I have a problem, I made a code to load bitmaps. It worked PERFECTLY! no bugs or anything, then I try it again, after writing a code 370 lines long. The file seems corrupted... Like if "fgetc(import);" suddenly stopped advancing in the FILE correctly...
PLEASE!!! HELP ME!!!
The loading code is in the actor Text=>Create Actor=>Script Editor.
to the person who helps me, he gets two scores. but one for sure.
PLEASE!!! HELP ME!!!
The loading code is in the actor Text=>Create Actor=>Script Editor.
to the person who helps me, he gets two scores. but one for sure.