Raised This Month: $ Target: $400
 0% 

Compilation Error 213 : Tag Mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zombie Lurker
Senior Member
Join Date: Mar 2009
Old 03-14-2009 , 00:37   Compilation Error 213 : Tag Mismatch
Reply With Quote #1

Hello everyone. I need some help with my script because I keep getting an error (title).
So here's the script contents :

Quote:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fun>
#include <zombieplague>
// MysticDeath Atributes
new const zclass_name[] = { "MysticDeath" } // name
new const zclass_info[] = { "HP+++ Speed+ Jump+ Knockback--- Leech+++" } // description
new const zclass_model[] = { "mysticdeath_zombie" } // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
const zclass_health = 9000 // health
const zclass_speed = 230 // speed
const Float:zclass_gravity = 0.85 // gravity
const Float:zclass_knockback = 0 // knockback
const zclass_infecthp = 2500 // extra hp for infections
// Class IDs
new g_mysticdeath
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
// Register the new class and store ID for reference
g_mysticdeath = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}
// User Infected forward
public zp_user_infected_post(id, infector)
{
// If attacker is a mysticdeath, gets extra hp
if (zp_get_user_zombie_class(infector) == g_mysticdeath)
set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass_infecthp))
}
Here is the error (sorry couldnt put up a picture, my internet too slow) :
Quote:
//// zp_class_mysticdeath.sma
// C:\Program Files\Valve\cstrike\addons\amxmodx\scripting\ zp_class_mysticdeath.sma : warning 213: tag mismatch
//Header size: 384 bytes
//Code size: 340 bytes
//Data size: 368 bytes
Stack/heal size: 16384 bytes; estimated max. usage=780 cells <3120 bytes>
//Total requirements: 17476 bytes
//
//1 Warning.
//Done.
//
// Compilation Time: 0.45 sec
// --------------------------------------
Please help me by posting a reply.
__________________
Zombie Lurker is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-14-2009 , 01:31   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #2

PHP Code:
const Float:zclass_knockback // knockback 

PHP Code:
const Float:zclass_knockback 0.0 // knockback 
TheRadiance is offline
Send a message via ICQ to TheRadiance
Zombie Lurker
Senior Member
Join Date: Mar 2009
Old 03-14-2009 , 05:47   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #3

Thanks alot TheRadiance! +karma for you.
__________________
Zombie Lurker is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-14-2009 , 06:06   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #4

those includes wasnt needed, also use tabs, to be more clean :]
Code:
#include <amxmodx> #include <fakemeta> #include <zombieplague> // MysticDeath Atributes new g_mysticdeath new const zclass_name[]     = { "MysticDeath" } // name new const zclass_info[]     = { "HP+++ Speed+ Jump+ Knockback--- Leech+++" } // description new const zclass_model[]    = { "mysticdeath_zombie" } // model new const zclass_clawmodel[]    = { "v_knife_zombie.mdl" } // claw model const zclass_health     = 9000  // health const zclass_speed      = 230   // speed const Float:zclass_gravity  = 0.85  // gravity const Float:zclass_knockback    = 0.0   // knockback const zclass_infecthp       = 2500  // extra hp for infections // Zombie Classes MUST be registered on plugin_precache public plugin_precache() {     // Register the new class and store ID for reference     g_mysticdeath = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback) } // User Infected forward public zp_user_infected_post(id, infector) {     // If attacker is a mysticdeath, gets extra hp     if( zp_get_user_zombie_class(infector) == g_mysticdeath )         set_pev( infector, pev_health, float(pev(infector, pev_health) + zclass_infecthp) ) }
__________________
xPaw is offline
Zombie Lurker
Senior Member
Join Date: Mar 2009
Old 03-15-2009 , 05:28   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #5

Oh ok it sure looks more clean than my old one. Thanks!
__________________
Zombie Lurker is offline
Wentix
Junior Member
Join Date: Jan 2009
Old 03-17-2009 , 05:02   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #6

Have that problem too

Code:
time = (thetime() - Timer[id]) + PauseTime[id];
warning 213: tag mismatch


what is problem here? Its just warning, but...
Wentix is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2009 , 05:58   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #7

Make sure that 'time' is a float. Also, time is native name, you should rename your var.
Arkshine is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-17-2009 , 10:10   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #8

Quote:
Originally Posted by arkshine View Post
...Also, time is native name, you should rename your var.
Does it effect the compilation/plugin?
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2009 , 10:19   Re: Compilation Error 213 : Tag Mismatch
Reply With Quote #9

Actually ( just tested I was not sure ) it doesn't matter, 'time' can be used.
Arkshine is offline
Reply



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 09:00.


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