Why don't you learn programming first - and then start to write programs?
What you are doing is so stupid - it's unbelievable.
Sorry about that, but looking at your website... and seeing what you have done already, I cannot believe that YOU wrote the code above or YOU wrote one piece of that stuff there... doesn't fit somehow... and its unbelievable that you made all this with the help of Ryan Moody, Scott Shaver, klepto2 and so on, as seen in other threads you started...
Look at your code: when you save your map, x=0 while y is in a loop from 0 to mapy-1 - means that you may save 25 Numbers (in case mapx=5 and mapy=5)
Now when you load, x and y are both 0 or 1 or 2 and so on.. means that after 5 numbers read, your "Load-Program" exits...
So why don't you for a start save the variables mapx and mapy into your file (gives you this great opportunity to have a variable mapsize), then loop to save map[x,y] as you did...
Then, when you want to load it, you do exact the opposite.
Read the variables into mapx and mapy - then use the same loops for reading into map[x,y]
And to all your other questions: You do not expect, that the forum members write your programs, or do you?
What you are doing is so stupid - it's unbelievable.
Sorry about that, but looking at your website... and seeing what you have done already, I cannot believe that YOU wrote the code above or YOU wrote one piece of that stuff there... doesn't fit somehow... and its unbelievable that you made all this with the help of Ryan Moody, Scott Shaver, klepto2 and so on, as seen in other threads you started...
Look at your code: when you save your map, x=0 while y is in a loop from 0 to mapy-1 - means that you may save 25 Numbers (in case mapx=5 and mapy=5)
Now when you load, x and y are both 0 or 1 or 2 and so on.. means that after 5 numbers read, your "Load-Program" exits...
So why don't you for a start save the variables mapx and mapy into your file (gives you this great opportunity to have a variable mapsize), then loop to save map[x,y] as you did...
Then, when you want to load it, you do exact the opposite.
Read the variables into mapx and mapy - then use the same loops for reading into map[x,y]
And to all your other questions: You do not expect, that the forum members write your programs, or do you?