Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duplicate Label ?!
#1
HEy guys, this is probably a very simple problem with a very simple answer, but, I am trying to make an RPG game that allows the user to save in binary to three slots... so...

Open Slotsave1 FOR BINARY AS #1
PUT #1 , , playername$
PUT #1 , , playerlevel
PUT #1 , , strength
CLOSE #1

right?

But, when I say something like:
PRINT "Choose a slot to save"
input slot
if slot = 1 then goto saveinslot1
if slot = 2 then goto saveinslot2
if slot = 3 then goto saveinslot3

saveinslot1:
Open Slotsave1 FOR BINARY AS #1
PUT #1 , , playername$
PUT #1 , , playerlevel
PUT #1 , , strength
CLOSE #1

saveinslot2:
Open Slotsave2 FOR BINARY AS #2
PUT #2 , , playername$
PUT #2 , , playerlevel
PUT #2 , , strength
CLOSE #2

and so forth, but then it says on the variable 'strength'

DUPlICATE LABEL

or something like that. I use this at the top

DIM SHARED strength AS INTEGER

do I need to put something else at the top... like
'$DYNAMIC
or
DEFIN A-Z I think that's it, but maybe not

anyway, it gives me a duplicate label error message whenever I try to do that, so I guess, is it only possible to save to one slot?

Any help would be appreciated, uh, if this doesn't make sense email me or post a message

NOVA@EDGEEMU.COM

thanks
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply


Messages In This Thread
Duplicate Label ?! - by NovaProgramming - 02-09-2003, 09:48 PM
Duplicate Label ?! - by na_th_an - 02-09-2003, 10:01 PM
Duplicate Label ?! - by Agamemnus - 02-09-2003, 10:10 PM
We said that already :) ... - by Glenn - 02-09-2003, 10:47 PM
Duplicate Label ?! - by NovaProgramming - 02-12-2003, 04:06 AM
Humor me... - by Glenn - 02-12-2003, 04:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)