O-o Haha, all this time I thought it was x + y * 16.
Anyway, I think the original poster is still trying to use #v() somewhere in the equation. You DO NOT need #v() ANYWHERE. The correct way to do it is (tiles[x,y] == number)
And I agree with Fox. Plus, an array with one value isn't an array..
However, I think you should be able to read a variable that's not an array with var[0].
PHP Code:
function onCreated() {
this.cookies = 7;
chat = this.cookies[0];
}