Raised This Month: $51 Target: $400
 12% 

warning 213: tag mismatch ???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 11-30-2016 , 12:50   warning 213: tag mismatch ???
Reply With Quote #1

After compiling my plugin I get these 18 warnings and I have no idea how to fix them. Please help.



Code: http://pastebin.com/raw/DuHFtzNp

The code may be poorly written since I'm new in SourcePawn. :/
iNickel is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 11-30-2016 , 13:02   Re: warning 213: tag mismatch ???
Reply With Quote #2

I think this is just because some space in these lines are wrong.

For example, this
Spoiler


should be
Spoiler


And always remeber
Error --> Plugin can't work, ggwp
Warning --> Plugin can work, don't worry my friend
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 11-30-2016 , 13:10   Re: warning 213: tag mismatch ???
Reply With Quote #3

Quote:
Originally Posted by rogeraabbccdd View Post
I think this is just because some space in these lines are wrong.

For example, this
Spoiler


should be
Spoiler


And always remeber
Error --> Plugin can't work, ggwp
Warning --> Plugin can work, don't worry my friend
That wasn't it.
I still get the warnings, but the plugin works, so GG
iNickel is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 11-30-2016 , 13:19   Re: warning 213: tag mismatch ???
Reply With Quote #4

Quote:
Originally Posted by iNickel View Post
That wasn't it.
I still get the warnings, but the plugin works, so GG
Sad
I always ignore this warning when I compile plugins, because the plugin can still work and I'm too lazy to find where's the problem
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-30-2016 , 15:56   Re: warning 213: tag mismatch ???
Reply With Quote #5

Quote:
Originally Posted by rogeraabbccdd View Post
Sad
I always ignore this warning when I compile plugins, because the plugin can still work and I'm too lazy to find where's the problem
Probably because his warnings are not indentation errors, they are most likely error using the wrong tags for variables that a function returns. It's hard to fix an error when there's no code posted.

Last edited by Mitchell; 11-30-2016 at 15:57.
Mitchell is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 11-30-2016 , 17:01   Re: warning 213: tag mismatch ???
Reply With Quote #6

Quote:
Originally Posted by Mitchell View Post
Probably because his warnings are not indentation errors, they are most likely error using the wrong tags for variables that a function returns. It's hard to fix an error when there's no code posted.
He has already posted his code in #1
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-30-2016 , 17:34   Re: warning 213: tag mismatch ???
Reply With Quote #7

Quote:
Originally Posted by rogeraabbccdd View Post
He has already posted his code in #1
It was removed.
Maxximou5 is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 11-30-2016 , 17:36   Re: warning 213: tag mismatch ???
Reply With Quote #8

Quote:
Originally Posted by Maxximou5 View Post
It was removed.
Didn't noticed that, sorry.
I have his code somewhere in my computer.
I can upload if he want.
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-30-2016 , 18:02   Re: warning 213: tag mismatch ???
Reply With Quote #9

All good.
Sounds like he doesn't if it was removed; however, if he wants the warnings corrected, he's on his own now.
Maxximou5 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 12-01-2016 , 14:28   Re: warning 213: tag mismatch ???
Reply With Quote #10

If anyone wanted to diagnose, here is the code he posted:

PHP Code:
#include <sourcemod>
#include <sdktools>

#undef REQUIRE_PLUGIN
#include <shavit>

#pragma newdecls required
#pragma semicolon 1

any gA_StyleSettings[STYLE_LIMIT][STYLESETTINGS_SIZE];

float VelocityOffset_0;
float VelocityOffset_1;
float BaseVelocityOffset;

bool gB_Late false;

public 
Plugin myinfo =
{
  
name "Additional Styles",
  
author "Kuleczky-Team",
  
description "Adds additional styles for shavit's timer",
  
version "1.0.7",
  
url "https://github.com/shavitush/bhoptimer"
};

public 
APLRes AskPluginLoad2(Handle myselfbool latechar[] errorint err_max)
{
    
gB_Late late;

    return 
APLRes_Success;
}

public 
void Shavit_OnStyleConfigLoaded(int styles)
{
    if(
styles == -1)
    {
        
styles Shavit_GetStyleCount();
    }

    for(
int i 0stylesi++)
    {
        
Shavit_GetStyleSettings(view_as<BhopStyle>(i), gA_StyleSettings[i]);
    }
}

public 
void OnPluginStart()
{
  
HookEvent("player_jump",PlayerJumpEvent);

  
VelocityOffset_0 FindSendPropInfo("CBasePlayer","m_vecVelocity[0]");
  
VelocityOffset_1 FindSendPropInfo("CBasePlayer","m_vecVelocity[1]");
  
BaseVelocityOffset FindSendPropInfo("CBasePlayer","m_vecBaseVelocity");

  
AutoExecConfig();
}

public 
void OnMapStart()
{
    if(
gB_Late)
    {
        
Shavit_OnStyleConfigLoaded(-1);
    }
}

public 
void PlayerJumpEvent(Handle event,const char[] name,bool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event,"userid"));

    if(
gA_StyleSettings[Shavit_GetBhopStyle(client)][iSpecial] == 32)
    {
        
float finalvec[3];
        
finalvec[0] = GetEntDataFloat(client,VelocityOffset_0)*0.2;
        
finalvec[1] = GetEntDataFloat(client,VelocityOffset_1)*0.2;
        
finalvec[2] = 0.0*20.0;
        
SetEntDataVector(client,BaseVelocityOffset,finalvec,true);
    }
    
    else if(
gA_StyleSettings[Shavit_GetBhopStyle(client)][iSpecial] == 64)
    {
        
float finalvec[3];
        
finalvec[0] = GetEntDataFloat(client,VelocityOffset_0)*0.4;
        
finalvec[1] = GetEntDataFloat(client,VelocityOffset_1)*0.4;
        
finalvec[2] = 0.0*40.0;
        
SetEntDataVector(client,BaseVelocityOffset,finalvec,true);
    }
    
    else if(
gA_StyleSettings[Shavit_GetBhopStyle(client)][iSpecial] == 2000)
    {
        
float finalvec[3];
        
finalvec[0] = GetEntDataFloat(client,VelocityOffset_0)*6.974;
        
finalvec[1] = GetEntDataFloat(client,VelocityOffset_1)*6.974;
        
finalvec[2] = 0.0*697.4;
        
SetEntDataVector(client,BaseVelocityOffset,finalvec,true);
    }
    
    else if(
gA_StyleSettings[Shavit_GetBhopStyle(client)][iSpecial] == 3000)
    {
        
float finalvec[3];
        
finalvec[0] = GetEntDataFloat(client,VelocityOffset_0)*10.958;
        
finalvec[1] = GetEntDataFloat(client,VelocityOffset_1)*10.958;
        
finalvec[2] = 0.0*1095.8;
        
SetEntDataVector(client,BaseVelocityOffset,finalvec,true);
    }
    
    else if(
gA_StyleSettings[Shavit_GetBhopStyle(client)][iSpecial] == 4000)
    {
        
float finalvec[3];
        
finalvec[0] = GetEntDataFloat(client,VelocityOffset_0)*14.944;
        
finalvec[1] = GetEntDataFloat(client,VelocityOffset_1)*14.944;
        
finalvec[2] = 0.0*1494.4;
        
SetEntDataVector(client,BaseVelocityOffset,finalvec,true);
    }
    
    else
    {
        return;
    }


Getting help from the community then removing code to keep it to yourself... selfish
__________________

Last edited by sneaK; 12-01-2016 at 14:33.
sneaK 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:43.


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