Raised This Month: $ Target: $400
 0% 

tag missmatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 06-01-2013 , 06:05   tag missmatch
Reply With Quote #1

PHP Code:
public cmdVmenu(id)
{
    new 
team cs_get_user_team(id)
    new 
isvip get_user_flags(id) & ADMIN_JBVIP
    
    
if(isvip)
    {
        if(
is_user_alive(id))
        {
            if(!
VipUsed[id])
            {
                switch(
team)
                {
                    case 
CS_TEAM_T:
                    {
                        
VipTMenu(id)
                    }
                    
                    case 
CS_TEAM_CT:
                    {
                        
VipCTMenu(id)
                    }
                }
            }
            else
            {
                
client_print_color(idRed"%s Tu jau naudojai ^3VIP MENIU^1, lauk kito round'o."PREFIX)
            }
        }
        else
        {
            
client_print_color(idRed"%s Tu turi buti gyvas, jei nori naudoti ^3/VMENU^1!"PREFIX)
        }
    }
    else
    {
        
client_print_color(idRed"%s Tik ^3VIP ^1zaidejai gali naudoti ^3/VMENU ^1komanda! Rasyk ^3/NORIUVIP^1!"PREFIX)
    }
    return 
PLUGIN_CONTINUE

Line with tag mismatch error
PHP Code:
new isvip get_user_flags(id) & ADMIN_JBVIP 

Last edited by GhostMan; 06-01-2013 at 06:11.
GhostMan is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-01-2013 , 06:11   Re: tag missmatch
Reply With Quote #2

Variable team needs to be tagged:
Code:
new CsTeams:team = cs_get_user_team(id)
And isvip should be tagged as bool.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 06-01-2013 at 06:13.
hornet is offline
GhostMan
Senior Member
Join Date: Jun 2012
Old 06-01-2013 , 06:16   Re: tag missmatch
Reply With Quote #3

Still shows tag missmatch warning on this line

PHP Code:
if(isvip
PHP Code:
public cmdVmenu(id)
{
    new 
CsTeams:team cs_get_user_team(id)
    new 
bool:isvip get_user_flags(id) & ADMIN_JBVIP
    
    
if(isvip)
    {
        if(
is_user_alive(id))
        {
            if(!
VipUsed[id])
            {
                switch(
team)
                {
                    case 
CS_TEAM_T:
                    {
                        
VipTMenu(id)
                    }
                    
                    case 
CS_TEAM_CT:
                    {
                        
VipCTMenu(id)
                    }
                }
            }
            else
            {
                
client_print_color(idRed"%s Tu jau naudojai ^3VIP MENIU^1, lauk kito round'o."PREFIX)
            }
        }
        else
        {
            
client_print_color(idRed"%s Tu turi buti gyvas, jei nori naudoti ^3/VMENU^1!"PREFIX)
        }
    }
    else
    {
        
client_print_color(idRed"%s Tik ^3VIP ^1zaidejai gali naudoti ^3/VMENU ^1komanda! Rasyk ^3/NORIUVIP^1!"PREFIX)
    }
    return 
PLUGIN_CONTINUE

GhostMan is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-01-2013 , 06:32   Re: tag missmatch
Reply With Quote #4

Hmm true just remove variable isvip and replace:
Code:
if(isvip)
With:

Code:
if( get_user_flags(id) & ADMIN_JBVIP )
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 06-01-2013 at 06:32.
hornet is offline
Reply


Thread Tools
Display Modes

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 16:16.


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