Hello. I introduced some changes to a plugin, and now when I try to compile it, the compiler shows the following warning:
"C:\Mod\cstrike\addons\amxmodx\scripting\zomb ie_plague_advance_v1-6-1.sma(1379
: warning 213: tag mismatch"
This is the part of the code I edited, and line 13798 is
marked in red:
Code:
public zombie_countdown()
{
new speak[ 10 ][] = { "fvox/zp_one.wav", "fvox/zp_two.wav", "fvox/zp_three.wav", "fvox/zp_four.wav", "fvox/zp_five.wav", "fvox/zp_six.wav", "fvox/zp_seven.wav", "fvox/zp_eight.wav", "fvox/zp_nine.wav", "fvox/zp_ten.wav" }
emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )
countdown--
set_dhudmessage(0, 0, 255, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
show_dhudmessage(0, "Infection in %i", time_s);
--time_s;
if(time_s >= 1)
{
set_task(1.0, "zombie_countdown")
}
}
The warning means I have to delete a number from that line, but I don't know which number I need to delete. Usually, after I replace HUD with DHUD, i need to delete the "-1" value that i often see at the end of the line, but this time the code is different and i don't know which number to delete.
Would you help me?
Also, it would be good if someone explains to me what exactly "tag mismatch" means, so I can learn how to fix such type of warnings by myself.
Thanks.