Jan Brandau
05-05-2008, 11:10 AM
Hello everyone!
I came across two problems in Version 4.32.
At first I am missing the modulo operator for integer value. In the documentation it says, that one can use "%", but this always gives me an error:
Flexscript Error VIEW:/active/scriptinputconsole108925808/script>curtext line 5 invalid character <%> ascii = 37
Flexscript Error VIEW:/active/scriptinputconsole108925808/script>curtext line 5 syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.
I then changed to the "fmod()"-function, but with this one can not use integer values, or otherwise the compiler will complain that it is ambiguous.
Second I ran across a problem with the settings of Global Variables with the function "fillarray. What I did is this. I changed to "Make all code C++" for the first time. Then some of my Global Variables showed vaules around 11731774932502602000000000000000000000000000000000 000000000000000000000000000000.000000 AFTER setting them to 0.0 with the help of fillarray in the "OnRunStart" Function. When I only used Flexscript this problem did not occur. This can be seen in the picture.
The funny thing is, that some values in the array are right and some are not. I worked around that with a while-loop. When I tried to reproduce it, the function worked fine. What you see in the picture is an old model version.
Hope this helps!
Greetings,
Jan
I came across two problems in Version 4.32.
At first I am missing the modulo operator for integer value. In the documentation it says, that one can use "%", but this always gives me an error:
Flexscript Error VIEW:/active/scriptinputconsole108925808/script>curtext line 5 invalid character <%> ascii = 37
Flexscript Error VIEW:/active/scriptinputconsole108925808/script>curtext line 5 syntax error, unexpected integer, expecting ';'
Could not finish parsing because of previous errors.
I then changed to the "fmod()"-function, but with this one can not use integer values, or otherwise the compiler will complain that it is ambiguous.
Second I ran across a problem with the settings of Global Variables with the function "fillarray. What I did is this. I changed to "Make all code C++" for the first time. Then some of my Global Variables showed vaules around 11731774932502602000000000000000000000000000000000 000000000000000000000000000000.000000 AFTER setting them to 0.0 with the help of fillarray in the "OnRunStart" Function. When I only used Flexscript this problem did not occur. This can be seen in the picture.
The funny thing is, that some values in the array are right and some are not. I worked around that with a while-loop. When I tried to reproduce it, the function worked fine. What you see in the picture is an old model version.
Hope this helps!
Greetings,
Jan