03-26-2003, 12:08 AM
after adding the savegame feature into my lastest greatest, im getting an error when compiling (qb45). the program is quite big (1800 lines)... and although im not the greatest programmer, i tend to keep thing very clean and efficient. after crawling thru the code over the past few days, ive managed to clean a few things up (and even rewrite some stuff). however i can't get rid of this error.
if i compile manually at the command line w/o the debugging, it compiles fine and says i have 3200 bytes free. but when i run the program and preform a few clicks here and there, then save... it crashes. if i remove this one small condition (an 8 line if, elseif statement) everything works perfect.
i cant for the life of me figure this out. so....
if anyone has some suggestions or work arounds for this, please lemme know. i want to finish this damn game already!
thanx in advance guys.
if i compile manually at the command line w/o the debugging, it compiles fine and says i have 3200 bytes free. but when i run the program and preform a few clicks here and there, then save... it crashes. if i remove this one small condition (an 8 line if, elseif statement) everything works perfect.
Code:
IF shoptype$ = "s" THEN
button 45, 170, 20, STR$(FuelQty%), 0, 15, 0
button 60, 170, 20, STR$(FoodQty%), 0, 15, 0
button 75, 170, 20, STR$(RockQty%), 0, 15, 0
button 90, 170, 20, STR$(AmmoQty%), 0, 15, 0
ELSEIF shoptype$ = "m" THEN
button 45, 170, 20, STR$(ArmorQty%), 0, 15, 0
button 60, 170, 20, STR$(PowerQty%), 0, 15, 0
button 75, 170, 20, STR$(SheildQty%), 0, 15, 0
END IF
i cant for the life of me figure this out. so....
if anyone has some suggestions or work arounds for this, please lemme know. i want to finish this damn game already!
thanx in advance guys.