for (int i = 0 ; i <= @ptnum ;i++) float b = float point(0,i,"P",0); printf("for ptnum %d x value is %d\n",@ptnum,b);
getting an error,
looking for corrections,
what is to be added or altered to the current code
thank you in advance
realised above point function is expression in hscript, And then i tried with the below code of point vex function still showing some error at printf function
float b = point(0,"P.x",0);
strange with this
float b = point(0,"P.x",0); printf("for ptnum %d x value is %d\n",@ptnum,b);
for ptnum 0 x value is 0
for ptnum 1 x value is 0
for ptnum 2 x value is 0
for ptnum 3 x value is 0
for ptnum 4 x value is 0
for ptnum 5 x value is 0
for ptnum 6 x value is 0
for ptnum 7 x value is 0
looking for corrections
i tried only with the printf function to print the @ptnum and @P.x
printf("for ptnum %d x value is %d\n",@ptnum,@P.x);
it worked and printed like this
for ptnum 0 x value is -0.5
for ptnum 1 x value is 0.5
for ptnum 2 x value is 0.5
for ptnum 3 x value is -0.5
for ptnum 4 x value is -0.5
for ptnum 5 x value is 0.5
for ptnum 6 x value is 0.5
for ptnum 7 x value is -0.5
but if i use the for loop it is not working