Tag mismatch issue
#1

Hi,

This is my following code:

Код:
enum E_FIRE_TYPES
{
    FIRE_TINY_NO_SMOKE,
    FIRE_SMALL_NO_SMOKE,
    FIRE_SMALL_BLACK_SMOKE,
    FIRE_MEDIUM_GRAY_SMOKE,
    FIRE_BIG_BLACK_SMOKE
}
new const g_FireModels[E_FIRE_TYPES] = {18688, 18692, 18689, 18691, 18690};
new const Float: g_FireDefaultHealth[E_FIRE_TYPES] = {200.0, 300.0, 370.0, 500.0, 1000.0};
If I type g_FireModels[FIRE_TINY_NO_SMOKE], it gives me 18688, which is the first element of the list.
If I type g_FireDefaultHealth[FIRE_TINY_NO_SMOKE], it gives me 200.0, which is also the first element of the list.

As you can see everything is working nice, but when I compile my gamemode, I get the tag mismatch warning on the highlighted line. I've tried the following changes:

Код:
new const g_FireDefaultHealth[E_FIRE_TYPES] = {200.0, 300.0, 370.0, 500.0, 1000.0};
new const _: g_FireDefaultHealth[E_FIRE_TYPES] = {200.0, 300.0, 370.0, 500.0, 1000.0};
I've also tried to attach the Float: tag to the enum and its 'items', but still get the warning.

Still getting the warning. Any ideas? :/
Reply


Messages In This Thread
Tag mismatch issue - by paulomu300 - 17.01.2016, 14:29
Re: Tag mismatch issue - by Eth - 17.01.2016, 14:33
Re: Tag mismatch issue - by paulomu300 - 17.01.2016, 14:37

Forum Jump:


Users browsing this thread: 2 Guest(s)