AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   error 054 problem! (https://forums.alliedmods.net/showthread.php?t=308584)

MagNNusS 06-26-2018 09:33

error 054 problem!
 
Hello modders.

I'm new in modding, not totally new, i'm working with mods around 2-4 weeks :grrr:
Anyway i'm having a problem while trying to compile my source code.

It's show's to me this error!

PHP Code:

error 054unmatched closing brace 

I checked it a'lot but i didn't find a solution :cry:

If someone would help me i would be very happy :)

Here's the code!

PHP Code:

NativeGetVipFlags(iddouble_attrib_update false
{    
    if (
id == 0) return;
    
    static 
idvalue
    
static const double_attribs[] = 
    {
        
AT_MULTIJUMP,
        
AT_EXTRA_HP,
        
AT_EXTRA_GRAVITY
    
}    
    
0
    
    
for(i=0i<player_attributes;) 
    {
        
        if (
double_attrib_update
        {
            
            if (
>= sizeof(double_attribs))
                break;
                
            
double_attribs[d++];
        }
    {
            
            if (
>= sizeof(double_attribs))
                continue;
                
            
double_attribs[d++];
    }
        
value 0
        
switch(i
        {
            case 
AT_MULTIJUMP
            {
                new 
jnum get_pcvar_num(cvar_multijump)
                if(
jnum
                {
                    static 
nflagsisspecial
                    nflags 
_get_pcvar_flags(cvar_multijump_allow)
                    
isspecial is_special_character(id)
                }
            }
            case 
AT_ARMORvalue get_pcvar_num(cvar_armor)
            case 
AT_NO_FALL_DMGvalue get_pcvar_num(cvar_no_fall_dmg)
            case 
AT_EXTRA_HPvalue get_pcvar_num(cvar_extra_hp)
            case 
AT_EXTRA_GRAVITYvalue get_pcvar_float(cvar_extra_gravity)
            case 
AT_EXTRA_ARMORvalue get_pcvar_num(cvar_extra_armor)
            case 
AT_EXTRA_MENUvalue p_data[id][FLAGS]?1:0
            
case AT_CHATTAGvalue get_pcvar_num(cvar_chat_viptag)
            case 
AT_VIPINSCOREvalue get_pcvar_num(cvar_vipniscoretable)
            case 
AT_EXTRA_SPEEDvalue get_pcvar_num(cvar_extra_speed)
            case 
AT_GRENADE_IMMUNITYvalue get_pcvar_num(cvar_extra_speed)
            case 
AT_VIP_CONNECTvalue get_pcvar_num(cvar_vip_connect)
        }
        
ATTRIB(idi) = value

        
if(!double_attrib_update)
            
i++
    }


Thank you.

OciXCrom 06-26-2018 09:46

Re: error 054 problem!
 
Just read what the error says. Look at your brackets after the first for() function.

MagNNusS 06-27-2018 06:12

Re: error 054 problem!
 
I just find my problem :)

Thank u OxiCrom, U helped me a'lot.

( Hvl Druze )


All times are GMT -4. The time now is 12:21.

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