Enum Limit?
#1

Does anyone know if there is any kind of enum limit? I added a variable to one of my enums today, and before i even did anything with it, i tried to compile the script and it crashed the compiler. I then tried using the variable like normal, still crashed.....Then I deleted the variable, it was fine. I tried renaming it to all kinds of things, still crashed the compiler.

Then I tried removing another variable from another enum, and it was fine, add it back, crash.....happens when i add another variable to an enum, which makes me think theres some kind of limit, Im quite an enum freak, I have 22 enums containing a total of 225 variables, 226+ and I get a compiler crash. The enums contain all kinds of data types, strings, floats, integers....all different sizes. Some enums are used in multidimensional arrays, others used in single dimensions.

Any explanation for this? Or better, a solution?

Thanks
Reply
#2

I have found that a mx of 5000 variabled arrays are the limit, that counts everything to total...

I used file writting and reading before I started using enums...
Reply
#3

Why do you need so big storage?
Reply
#4

Quote:
Originally Posted by Zinglish
I have found that a mx of 5000 variabled arrays are the limit, that counts everything to total...

I used file writting and reading before I started using enums...
Arrays are not the problem, I can still create those and its fine. Also, what do you mean, file writing and reading before using enums? You wrote to a file and read from the file every time you made changes to a player variable?! Damn that must have been slow.

Quote:
Originally Posted by $ЂЯĢ
Why do you need so big storage?
Theres a lot in the GM, lol.
Reply
#5

Quote:
Originally Posted by DavidC
Quote:
Originally Posted by Zinglish
I have found that a mx of 5000 variabled arrays are the limit, that counts everything to total...

I used file writting and reading before I started using enums...
Arrays are not the problem, I can still create those and its fine. Also, what do you mean, file writing and reading before using enums? You wrote to a file and read from the file every time you made changes to a player variable?! Damn that must have been slow.
That's why we have MySQL.
Reply
#6

I use mysql, but I try not to use too many SELECT statements too frequently, as its way faster to keep a variable with the information in it than keep updating and selecting from the database when you need something, which explains the massive enums (the player enum is only one of the 22 lol).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)