Hello,
i try to lern lite_c, but i got a strange problem:
function save_nodes()
{
var i;
var j;
var k;
var num_nodes;
//get node positions
while(i < 50)
{
you = ptr_for_handle(nodes[i]);
if(you)
{
node_pos[j][0] = you.x;
node_pos[j][1] = you.y;
node_pos[j][2] = you.z;
j += 1;
}
i += 1;
}
num_nodes = j;
"j" works fine - it saves the right value
but if i use "num_nodes = j;" num_nodes is something like 52228.000 (but not the j value)
is this a pointer problem?
Thx kasimir