View Single Post
Hop
Junior Member
Join Date: Jun 2016
Old 04-04-2017 , 17:20   Re: enum and native tag mismatch
#3

Quote:
Originally Posted by Fyren View Post
As far as I know, you can use enums as structs with a newer compiler as long as you declare everything using the older syntax.

Something like your above can't work because your array is literally just "any g_aConfig[8][10]". Trying to throw on another dimension is wrong.

What was the code you used originally?
Before this I was compiling in in 1.6.0 and it was like this:
PHP Code:
enum _:Config
{
    
String:Name[8],
    
bool:bEnabled[2]
};

[...]

new 
g_iConfig[8][Config];

[...]

if(
g_iConfig[Name][Enabled][ID]) 
Hop is offline