Raised This Month: $32 Target: $400
 8% 

I get tagmismatches if <engine> is included in the ZP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 08-24-2013 , 11:33   I get tagmismatches if <engine> is included in the ZP
Reply With Quote #1

Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team

//// xld_plague43.sma
// xld_plague43.sma(11513) : warning 213: tag mismatch
// xld_plague43.sma(11513) : warning 213: tag mismatch
// xld_plague43.sma(11513) : warning 213: tag mismatch
// xld_plague43.sma(11527) : warning 213: tag mismatch
// xld_plague43.sma(11527) : warning 213: tag mismatch
// xld_plague43.sma(11527) : warning 213: tag mismatch
// Header size:           8676 bytes
// Code size:           329036 bytes
// Data size:           176316 bytes
// Stack/heap size:      16384 bytes; max. usage is unknown, due to recursion
// Total requirements:  530412 bytes
//
// 6 Warnings.
// Done.
//
// Compilation Time: 4.56 sec
// ----------------------------------------

Press enter to exit ...
They come from here:
Code:
// Checks if a space is vacant (credits to VEN)
stock is_hull_vacant(Float:origin[3], hull)
{
    engfunc(EngFunc_TraceHull, origin, origin, 0, hull, 0, 0)
    
    if (!get_tr2(0, TR_StartSolid) && !get_tr2(0, TR_AllSolid) && get_tr2(0, TR_InOpen))
        return true;
    
    return false;
}

// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static Float:originF[3]
    pev(id, pev_origin, originF)
    
    engfunc(EngFunc_TraceHull, originF, originF, 0, (pev(id, pev_flags) & FL_DUCKING) ? HULL_HEAD : HULL_HUMAN, id, 0)
    
    if (get_tr2(0, TR_StartSolid) || get_tr2(0, TR_AllSolid) || !get_tr2(0, TR_InOpen))
        return true;
    
    return false;
}
It doesn't interfere with the code, it just keeps annoying me... Just asking if there's a solution to this.
hellmoss is offline
bat
Veteran Member
Join Date: Jul 2012
Old 08-24-2013 , 11:39   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #2

PHP Code:
// Checks if a space is vacant (credits to VEN)
stock is_hull_vacant(Float:origin[3], hull)
{
    
engfunc(EngFunc_TraceHulloriginorigin0hull00)
    
    if(!
get_tr2(0TR_StartSolid) && !get_tr2(0TR_AllSolid) && get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;
}

// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if(
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || !get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;

bat is offline
Send a message via Skype™ to bat
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 08-24-2013 , 11:47   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #3

Still the same stuff...
hellmoss is offline
Old 08-24-2013, 11:48
bat
This message has been deleted by bat.
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 08-24-2013 , 11:51   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #4

Are you serious?? You just removed the little space between the IFs.... Don't you know that's doing the exact same thing?
hellmoss is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 08-25-2013 , 01:10   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #5

Just check whether these stocks are used or not...... if not and still they're in the code just entirely remove that stock part.

In short if u dont find "is_hull_vacant(blab...)" and "is_player_stuck(blbla....)" in the code anywhere else then just entirely remove that part...
__________________
You will find everything u need :-
Catastrophe is offline
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 08-26-2013 , 05:46   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #6

They're used. They're there since the original ZP 4.3.
hellmoss is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 08-26-2013 , 08:17   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #7

try :-

PHP Code:
// Checks if a space is vacant (credits to VEN)
stock is_hull_vacant(Float:origin[3], hull)
{
    
engfunc(EngFunc_TraceHulloriginorigin0hull00)
    
    if ((!
get_tr2(0TR_StartSolid)) && (!get_tr2(0TR_AllSolid)) && get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;
}

// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if (
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || (!get_tr2(0TR_InOpen)))
        return 
true;
    
    return 
false;

__________________
You will find everything u need :-
Catastrophe is offline
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 09-02-2013 , 11:49   Re: I get tagmismatches if <engine> is included in the ZP
Reply With Quote #8

Same thing again...
Edit: My compiler caused the errors. Normal compilers don't. You can lock.

Last edited by hellmoss; 09-04-2013 at 08:42. Reason: Solved...
hellmoss 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 23:47.


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