"structs" and enums...
In the plugin I am creating, I'm using enums to simulate a stuct.
What I want to know is how can I put an enum inside an enum without the compiler crashing, if its even possible. Example: Lets say you want have a "struct" that stores a player's FPS, and rate it "high", "medium", "low". Code:
and then I want to make pfFPS "rateable" by doing this... Code:
How can I do this without the compiler crashing? --Zenith |
Code:
|
No, thats not what I want to do. What you did would allow me to access each element of the enum with the array.
I want pfFPS to have to be set to either frHigh, frMedium, frLow. Code:
|
Code:
|
It'll give me a tag mismatch, since I am using a defined enum type with an element thats not set to use it.
|
then use this cast
Code:
|
I tired to :'(, still gave me tag mismatch...
Like this right? Code:
|
Oh god, just use different arrays!
|
| All times are GMT -4. The time now is 05:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.