Solved What are maxindexedvars, maxscriptvars, maxentityvars?

Question that is answered or resolved.

Bruce

Active member
Hello everyone,
Sorry for the noob questions.

"maxscriptvars", - gets maximum number of variables in each script which is accessible by index.
"maxindexedvars", - gets maximum number of global variables which is accessible by index.
"maxentityvars", - gets maximum number of variables in each entity which is accessible by index


I don't understand what's being written on the manual, can someone please help me understand these functions?
What's are the disadvantages for having high value?


script.txt from the OpenBor template:
Code:
maxindexedvars    48
maxscriptvars    16
maxentityvars    4
alwaysupdate    1

Thank you very much
 
Solution
Hello everyone,
Sorry for the noob questions.

"maxscriptvars", - gets maximum number of variables in each script which is accessible by index.
"maxindexedvars", - gets maximum number of global variables which is accessible by index.
"maxentityvars", - gets maximum number of variables in each entity which is accessible by index


I don't understand what's being written on the manual, can someone please help me understand these functions?
What's are the disadvantages for having high value?


script.txt from the OpenBor template:
Code:
maxindexedvars    48
maxscriptvars    16
maxentityvars    4
alwaysupdate    1

Thank you very much

At one point they controlled how many of a given variable scope was available. If you needed to...
Hello everyone,
Sorry for the noob questions.

"maxscriptvars", - gets maximum number of variables in each script which is accessible by index.
"maxindexedvars", - gets maximum number of global variables which is accessible by index.
"maxentityvars", - gets maximum number of variables in each entity which is accessible by index


I don't understand what's being written on the manual, can someone please help me understand these functions?
What's are the disadvantages for having high value?


script.txt from the OpenBor template:
Code:
maxindexedvars    48
maxscriptvars    16
maxentityvars    4
alwaysupdate    1

Thank you very much

At one point they controlled how many of a given variable scope was available. If you needed to use lots of global variables, you'd increase the maximum. The disadvantage was using more memory whether you actually had that many variables in your scripts or not.

Variables are now allocated dynamically and have been for almost 10 years. Those settings are depreciated and don't do anything. Ignore them.

DC
 
Solution
Back
Top Bottom