# Check this plz

**URL:** <https://forum.kirupa.com/t/check-this-plz/87711>\
**Category:** Uncategorized\
**Created:** [April 23, 2005, 1:22am UTC](https://forum.kirupa.com/t/check-this-plz/87711 "2005-04-23T01:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 23, 2005, 1:22am UTC](https://forum.kirupa.com/t/check-this-plz/87711/1 "2005-04-23T01:22:51Z")

</div>

```auto
loadText = new LoadVars();
loadText.load("Maps/default.txt");
loadText.onLoad = function() {
    var $lengthx = Number(this.xsize);
    var $lengthy = Number(this.ysize);
    var $x, $y;
    _global.map = new Array();
    _global.land = new Array();
    for ($x=0; $x<=$lengthx; $x++) {
        map[$x] = new Array();
        land[$x] = new Array();
        for ($y=0; $y<=$lengthy; $y++) {
            map[$x][$y] = Number(this["M"+Number($x)+"-"+Number($y)]);
            land[$x][$y] = 1;
        }
    }
};

```

now if you see any problem in that code please tell me… or just say theres no errors(problems not errors) if you dont see any. I’ve been staring at it for ever and see nothing wrong.

note: this loads the map for my game from a .txt file.
