Raised This Month: $ Target: $400
 0% 

[MACRO] warning 213: tag mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nightfall1
Senior Member
Join Date: Aug 2008
Old 12-03-2011 , 17:51   [MACRO] warning 213: tag mismatch
Reply With Quote #1

I have a problems with #define is give me a loot of error warning 213: tag mismatch
Is there something wrong in my code?

PHP Code:
#define BitFlag_GiveIt(%0,%1)        ( ( %0 ) |= ( %1 ) )
#define BitFlag_TakeIt(%0,%1)        ( ( %0 ) &= ~( %1 ) )
#define INI_Zek(%1,%2,%3) \
    
if(!strcmp((%1),name,true))return boolstr(value) ? BitFlag_GiveIt(%2, %3) : BitFlag_TakeIt(%2, %3

Please help me to find a better solution or anything else.
__________________
SIGNATURE
Nightfall1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-03-2011 , 18:29   Re: [MACRO] warning 213: tag mismatch
Reply With Quote #2

1. I get no warnings.
2. Does it work?
__________________
fysiks is offline
Nightfall1
Senior Member
Join Date: Aug 2008
Old 12-04-2011 , 05:41   Re: [MACRO] warning 213: tag mismatch
Reply With Quote #3

I try no define and is work

PHP Code:
// Public where I use
public AccountDataLoad(playeridtag[], name[], value[])
{
    if(!
strcmp("CityIsSelected",name,true))
    {
        if(
boolstr(value))
            
BitFlag_GiveIt(g_PlayerFlags[playerid],IsHasCitySelected);
        else
            
BitFlag_TakeIt(g_PlayerFlags[playerid],IsHasCitySelected);
    }

PHP Code:
// Bit Flag and Bit Enum
enum PlayerFlags:(<<= 1)
{
    
IsHasCitySelected 1,
}
new 
PlayerFlags:g_PlayerFlags[MAX_PLAYERS]; 
__________________
SIGNATURE

Last edited by Nightfall1; 12-04-2011 at 05:52.
Nightfall1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-04-2011 , 12:30   Re: [MACRO] warning 213: tag mismatch
Reply With Quote #4

Quote:
Originally Posted by Nightfall1 View Post
I try no define and is work

PHP Code:
// Public where I use
public AccountDataLoad(playeridtag[], name[], value[])
{
    if(!
strcmp("CityIsSelected",name,true))
    {
        if(
boolstr(value))
            
BitFlag_GiveIt(g_PlayerFlags[playerid],IsHasCitySelected);
        else
            
BitFlag_TakeIt(g_PlayerFlags[playerid],IsHasCitySelected);
    }

PHP Code:
// Bit Flag and Bit Enum
enum PlayerFlags:(<<= 1)
{
    
IsHasCitySelected 1,
}
new 
PlayerFlags:g_PlayerFlags[MAX_PLAYERS]; 
Problem solved then. Using a preprocessor definition was not appropriate for that third one anyway.
__________________
fysiks 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 08:31.


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