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

[PAWN/CSS] Lot of warning 213 : tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benjani13
Junior Member
Join Date: Jul 2012
Old 09-15-2012 , 09:41   [PAWN/CSS] Lot of warning 213 : tag mismatch
Reply With Quote #1

Hi!

I have a little problem. I'm writing a plugin and I have lot of tag mismatch on basic variable. Look this:
Code:
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontbroadcoast)
{
   /*code*/
   new attackerID = GetEventInt(event, "attacker")
   /*code*/

   return Plugin_Handled
}
I have also a tag mismatch warning on these lines in others functions:
Code:
new i
/**/
new thereIsLuciole = 0
I even have some tag mismatch on some ending brackets.

Do I have to precise a class on these variables? If yes which?

Thank you.
benjani13 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-15-2012 , 09:56   Re: [PAWN/CSS] Lot of warning 213 : tag mismatch
Reply With Quote #2

Please end lines with semicolons.
__________________
FaTony is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-15-2012 , 10:33   Re: [PAWN/CSS] Lot of warning 213 : tag mismatch
Reply With Quote #3

There's a good chance that the actual issue is arising right above or below the lines you pasted, the more code you paste, the easier it is to help you.
necavi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-15-2012 , 10:44   Re: [PAWN/CSS] Lot of warning 213 : tag mismatch
Reply With Quote #4

Quote:
Originally Posted by benjani13 View Post
Hi!

I have a little problem. I'm writing a plugin and I have lot of tag mismatch on basic variable. Look this:
Code:
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontbroadcoast)
{
   /*code*/
   new attackerID = GetEventInt(event, "attacker")
   /*code*/

   return Plugin_Handled
}
If you try block event, you need Pre hook "player_death" event and add Action: in callback.
PHP Code:
public OnPluginStart()
{
    
HookEvent("player_death"deathEventHookMode_Pre);
}

public 
Action:death(Handle:event, const String:name[], bool:dontbroadcoast)
{
    return 
Plugin_Handled;

But otherwise you don't need do this.

Just remove Plugin_Handled from your code or you don't need return in your callback at all.
__________________
Do not Private Message @me
Bacardi is offline
benjani13
Junior Member
Join Date: Jul 2012
Old 09-15-2012 , 11:39   Re: [PAWN/CSS] Lot of warning 213 : tag mismatch
Reply With Quote #5

Thanks a lot Bacardi, you solved my problem.
benjani13 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 19:28.


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