Another "tag mismatch" warning
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(13798) : warning 213: tag mismatch" This is the part of the code I edited, and line 13798 is marked in red: Code:
public zombie_countdown()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. |
|
Re: Another "tag mismatch" warning
Quote:
|
Re: Another "tag mismatch" warning
I see 11 arguments where there should be 10.
The ,10 sticks out. What is this ,10 supposed to do? Study this. https://www.amxmodx.org/api/amxmodx/set_dhudmessage Code:
native set_dhudmessage(red = 200, green = 100, blue = 0, Float:x = -1.0, Float:y = 0.35, effects = 0, Float:fxtime = 6.0, Float:holdtime = 12.0, Float:fadeintime = 0.1, Float:fadeouttime = 0.2); |
Re: Another "tag mismatch" warning
Quote:
The ",10" was there, in the default code of the plugin, before i changed HUD into DHUD. Thanks for your help. The problem is solved. Yeah, I have to learn how to deal with these arguments. |
Re: Another "tag mismatch" warning
You are welcome. Soft coding is technique for such. Instead of 'SzString of unmarked iNumbers' suddenly the code is personified. Mistakes are easier to spot.
|
Re: Another "tag mismatch" warning
Simply look at the function definition to see how many arguments and of what type you need.
|
| All times are GMT -4. The time now is 11:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.