Ok. So I've made a monopoly "game saver." Basically the user plugs in the specs for each player, including deeds, money, and any addtional notes. This is the rough draft of it, before i make a gui or even game variations. My problem is, the code comes up with an error.
Here is the code:
menu:
print "**********************************"
print "Welcome to Monopoly Cauculator v1.0"
print "**********************************"
wait 3000
print ""
print ""
`new game creation
input "Please enter the amount of players>>>";p
`**** variations go here ****
`set up player stats (name:money, deeds, additional notes)
dim player(p,3)
`for i = 1 to p
input "Enter the players name >>>";player(i,1)
rem the problem is here ^ ^ ^
input "Enter the deeds this player has, seperated by commas>>>";player(i,2)
input "Please any any additional notes for this player (ie. deals made)";player(i,3)
next i
`save the data into a .txt file
if name$=""
ret:
print "so what do you want to save this file as"
input file$
if file exist(file$)=1
print "that file exist's already do you want to over write y/n"
input temp$
if temp$="y"
delete file file$
else
goto ret
endif
endif
print "saving file"
open to write 1,file$
write file 1,player(1,1)
write file 2,player(1,2)
write file 3,player(1,3)
for i = 2 to p
if x = 0 then x = 1
x=x+1
write file x,player(i,1)
x=x+1
write file x,player(i,2)
x=x+1
write file x,player(i,3)
next i
cls
else
if file exist(name$)=1 then delete file name$
print "saving file"
if file exist(name$)=1 then delete file name$
open to write 1,name$
write string 1,what$
cls
endif
if file open(1)=1 then close file 1
print "done"
the error msg i get is "Syntax Error. Cannot evaluate due to irregular brackets at line 25"
I would really appreate what that error is telling me and what mistake did i put in the code.