Raised This Month: $32 Target: $400
 8% 

error 054 problem!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 06-26-2018 , 09:33   error 054 problem!
Reply With Quote #1

Hello modders.

I'm new in modding, not totally new, i'm working with mods around 2-4 weeks
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

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.
MagNNusS is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-26-2018 , 09:46   Re: error 054 problem!
Reply With Quote #2

Just read what the error says. Look at your brackets after the first for() function.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 06-27-2018 , 06:12   Re: error 054 problem!
Reply With Quote #3

I just find my problem

Thank u OxiCrom, U helped me a'lot.

( Hvl Druze )
MagNNusS 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 00:02.


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