I cant find those files,and even if I can,the problem isnt related directly to pathfinding anymore its more related to tile based programming.
By adding:
Code:

if(tmp1 > 50)
{


Before the while loop it solves the problem,but only for the first row of tiles. If I make for every row if > 50 , if > 100 it will become useless again because I'm defining some limits to the script. I need to figure out a way to tell the engine how to identify if its bigger than some values. Or an entirely new way of finding that tile in the grid.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201