Raised This Month: $ Target: $400
 0% 

Another "tag mismatch" warning


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 12-04-2021 , 05:08   Another "tag mismatch" warning
Reply With Quote #1

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.

Last edited by GlobalPlague; 12-04-2021 at 05:15.
GlobalPlague is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode