17.01.2016, 14:29
(
Последний раз редактировалось paulomu300; 17.01.2016 в 14:32.
Причина: little fix on the code
)
Hi,
This is my following code:
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:
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? :/
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_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};
Still getting the warning. Any ideas? :/