Jump to content
Sign in to follow this  
tortuosit

"hint format" displays "any" instead of variable content

Recommended Posts

Hi,

as a result for:

hint format ["ocMin %1 | ocMax %2 | fogMin %3 | fogMax %4 | windMin %5 | windMax %6 | minVari %7 | maxVari %8",_ocMin,_ocMax,_fogMin,_fogMax,_windMin,_windMax,_minVari,_maxVari];

I receive:

ocMin any | ocMax any | fogMin any ...

Any? What any?

Why is this? Sometimes I get results, but also mixed with "any"'s and I have no clue why "any". All variables have float values between 0 and 1 and have before even been checked with isNil.

Share this post


Link to post
Share on other sites

Did you define "private" in that script?

Sounds like a scope-problem.

Share this post


Link to post
Share on other sites

Yes, I just found out, local variables which are assigned inside if-clauses are not visible outside the if{}. Will have a look at "private".

Share this post


Link to post
Share on other sites

Thanks, it solved my problem.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×