Global Array + Enum Struct
I'm using this but I get "warning 213: tag mismatch".
PHP Code:
|
Re: Global Array + Enum Struct
The short answer is if you want a 1D array of enumWeaponClasses, then you declared your variable with too many dimensions.
The longer answer is fixing it still won't work on 1.10 due to a bug. It will work in spcomp in SM builds since mid-December. You also likely didn't provide all the output, since compiling what you gave above with the latest 1.10 and 1.11 produce an error in addition to warnings, or tell us which compiler version you're using. |
Re: Global Array + Enum Struct
I'm using 1.10, I can upgrade to 1.11 if the bug is fixed.
It won't compile "cannot call methods on an array", but also gives a tag mismatch warning. This is an example of what I'm trying to do: PHP Code:
|
Re: Global Array + Enum Struct
Quote:
The warnings and errors are both different ways of the compiler telling you that, since it can't know whether you really meant 1D or 2D. |
All times are GMT -4. The time now is 22:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.