#### Archived

This topic is now archived and is closed to further replies.

# What a stupid error message!

This topic is 5974 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Or maybe I''m the one that''s stupid. The fact of the matter is these EXACT lines of code worked on my other program. Bah... if anyone can figure this out, it would be greatly appreciated: For counter = 0 To 1 Line Input #1, blah For iY = 0 To levelYnum Line Input #1, rowline For iX = 0 To levelXnum - 1 xco = Val(Mid$(rowline, (iX * 2), 1)) * 32 yco = Val(Mid$(rowline, (iX * 2) + 1, 1)) * 32 level(iX, iY, counter).x = xco level(iX, iY, counter).y = yco Next iX Next iY Next counter it starts saying things about "invalid command" on the first of those two lines, but since they''re similar i thought I''d throw them both up. Anyways, what this is doing is the "iX" is the loop variable for the map loading function in the X direction. This is analyzing each line (String) and looking at each 2-digit segment to see what tile corresponds. Like I said, this worked before but maybe I don''t see the problem. Please help!

##### Share on other sites

the code gets a string, say:

"00,00,00,00,00,00"

xco is supposed to hold each 1st digit
yco holds each 2nd digit.

By using these two values, I find the right tile to place there from the bitmap.

I hope someone can help!!

• ### Forum Statistics

• Total Topics
628694
• Total Posts
2984253

• 16
• 13
• 13
• 10
• 10