Statistics: Posted by Skyler — Thu Nov 30, 2006 9:17 am
Statistics: Posted by bungytheworm — Wed Nov 01, 2006 5:05 am
Statistics: Posted by RayBritton — Wed Nov 01, 2006 5:05 am
Code:
fbc -lang qb mysource.bas
Statistics: Posted by Andi — Tue Oct 31, 2006 11:42 pm
Code:
fbc -lang qb mysource.bas
Statistics: Posted by Antoni — Tue Oct 24, 2006 2:42 pm
Statistics: Posted by bungytheworm — Tue Oct 24, 2006 4:01 am
Here is the beginning of my code. This code works fine when running inside of Qbasic itself. I edited out the sub declarations at the beginning.C:\qbfiles\fbasic>fbc example/uncle.bas
example/uncle.bas(1543) : warning level 0: Implicit variable allocation, rathole3num
example/uncle.bas(2420) : warning level 0: Implicit variable allocation, pianonum
example/uncle.bas(3046) : warning level 0: Implicit variable allocation, paintingnum
example/uncle.bas(290) : error 95: Branching to other SUB's/FUNCTION's or to mod
ule-level, to label: ROOM1
example/uncle.bas() : error 48: Undefined label, ROOM1
example/uncle.bas() : error 48: Undefined label, STORY
example/uncle.bas() : error 48: Undefined label, HELP
example/uncle.bas() : error 48: Undefined label, ABOUT
example/uncle.bas() : error 48: Undefined label, LOG1
example/uncle.bas() : error 48: Undefined label, LOG2
example/uncle.bas() : error 48: Undefined label, LOG3
example/uncle.bas() : error 48: Undefined label, VINE1
example/uncle.bas() : error 48: Undefined label, VINE2
example/uncle.bas() : error 120: Too many errors, exiting
Code:
start: CLStreasurenum = 0revolvernum = 0armsnum = 0bulletnum = 0vinenum = 0hammernum = 0key1num = 0lanternnum = 0shovelnum = 0ballnum = 0key2num = 0key3num = 0laddernum = 0acidnum = 0apekillnum = 0new = 1log1num = 0log3num = 0vine2num = 0gravenum = 0pitnum1 = 0pitnum2 = 0moundnum = 0arm2num = 0arm3num = 0arm4num = 0grassnum = 0pantherkillnum = 0dogkillnum = 0benchnum = 0tdoor1num = 0tdoor2num = 0bucketnum = 0hole1num = 0bricknum = 0cranknum = 0dropnum = 0mutantkillnum = 0rathole1num = 0rathole2num = 0rathol3num = 0door14num = 0pouchnum = 0chestnum = 0ballcount = 0rashnum = 0rashcount = 0orchidcount = 0skeletonnum = 0engravenum = 0catnum = 0eelnum = 0clocknum = 0engravecount = 0tdoor2num = 0dogrunnum = 0spicenum = 0spicekillnum = 0bagnum = 0woodchestnum = 0biscuitnum = 0mechmannum = 0maneatnum = 0vaultnum = 0ballgrabnum = 0winnum = 0bednum = 0pillownum = 0levernum = 0safenum = 0flowernum = 0flashnum = 0kawandusnum = 0hogkillnum = 0hammerdoor = 0COLOR 8PRINT " Uncle Andrew's Manor"PRINT ""COLOR 3PRINT " A game by Andi Hagen"PRINT ""COLOR 6PRINT "(a) begin"PRINT "(b) story"PRINT "(c) instructions"PRINT "(d) about"PRINT "(e) quit"PRINT ""COLOR 7PRINT "What is your choice"; : INPUT choice$IF choice$ = "a" THEN GOTO room1IF choice$ = "b" THEN GOTO storyIF choice$ = "c" THEN GOTO helpIF choice$ = "d" THEN GOTO aboutIF choice$ = "e" THEN GOTO quitGOTO startstory:CALL storyGOTO starthelp:CALL helpGOTO startquit: ENDabout:CALL aboutGOTO start''''''''''''''''''''''''''''''''''''''''''''''room1:IF ballnum = 1 THEN ballcount = ballcount + 1IF ballcount = 10 THEN CALL ballboom GOTO startEND IF
Statistics: Posted by Andi — Mon Oct 23, 2006 6:17 pm