K
Kasra_n
Guest
how can i implement a code like this in gml ?
it is on c++ and works fine, but i tryed:
and not working
Code:
void inOrder(int x){
inOrder(leftChild[x]);
queue.push_back(x);
inOrder(rightChild[x]);
return;
}
Code:
//script find_patch
var xc = argument[0]; // xcx starts by 0
if (xc < 10)
for(var i = 0; i < 10; i++)
{
find_patch(xc+1);
}
else return false;