Posted: Fri Nov 11, 2011 8:46 am Post subject: ERROR messages in records
What is it you are trying to achieve?
Im trying to clean up my coding on a game i made by implementing records
What is the problem you are having?
when i try to run the program, i get an error highlighting the "type" (right before the record) and saying that it expected '..'
Describe what you have tried to solve this problem
replacing the type with '..' like it said... no idea what else to do
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Turing:
type character : record
x :real
y :real
xv :real
yv :real
hp :int endrecord
Please specify what version of Turing you are using
not sure, the newest version found on holtsoft
4.1.1 something
Sponsor Sponsor
Insectoid
Posted: Fri Nov 11, 2011 9:04 am Post subject: RE:ERROR messages in records
The issue is probably a couple of lines above your record declaration. Maybe you messed up a for loop, or array declaration (var foo : array 1 %This is what I'm talking about).
evildaddy911
Posted: Fri Nov 11, 2011 4:30 pm Post subject: RE:ERROR messages in records
yeah, typo in the constant declaration right above it, works great now