Raised This Month: $ Target: $400
 0% 

Error compiling


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bloods
Member
Join Date: Aug 2013
Old 05-10-2014 , 20:34   Error compiling
Reply With Quote #1

Hey, I'm trying to compile my jailbreak vip menu, my error is this:

Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Warning: Loose indentation on line 262
Error: Invalid expression, assumed zero on line 262
Warning: Loose indentation on line 265
Error: Invalid statement; not in switch on line 265
Warning: Expression has no effect on line 265
Error: Expected token: ";", but found ":" on line 265
Error: Invalid expression, assumed zero on line 265
Error: Too many error messages on one line on line 265

Compilation aborted.
5 Errors.
Could not locate output file C:\Users\xxxxx\Documents\amx\jbvip.amx (compile failed).
My code is this(I've given lines 209-300):

PHP Code:
        
        case 
4:
        { 
            if( 
is_user_aliveid ) )
            { 
                if( 
cs_get_user_teamid ) == CS_TEAM_CT )
                {
                    if ( 
u_kit id ] )
                    {
                        
u_kit id ] = 0
                        
                        
new Client[32
                        
get_user_name(id,Client,31
                        
                        
give_item(id"weapon_hegrenade");
                        
give_item(id"weapon_flashbang");
                        
give_item(id"weapon_flashbang");
                        
give_item(id"weapon_smokegrenade");
                        
give_item(id"weapon_deagle");
                        
cs_set_user_bpammo(idCSW_DEAGLE35);
                        
cs_set_user_armor(id100CS_ARMOR_VESTHELM);
                        
give_item(id"weapon_m4a1");
                        
cs_set_user_bpammo(idCSW_M4A190);
                        
ColorChat(0GREY"^x04%s^x03 ' ^4%s^3 ' used the VIP Menu to get a^4 Colt^3!"prefixClient )
                    }
                    else 
ColorChat(idGREY"^x04%s^x03 You have already picked a kit!"prefix )
                }
                else 
ColorChat(idGREY"^x04%s^x03 You need to be a^04 Counter Terrorist^03 to get^4 Weapons^3."prefix )            
            }
            else 
ColorChat(idGREY"^x04%s^x03 You're dead, you can't use this command!"prefix )
        }
        case 
5:
        { 
            if ( 
get_gametime ( ) < u_noclip id ] + 60 )
            {
                
ColorChat idGREY"^x04%s^x03 You must wait^4 %i^3 seconds before you can use noclip."prefixfloatround u_noclip id ] + 60 get_gametime ( ) + ) )
                return 
PLUGIN_HANDLED
            
}
            else
            {
                if(
is_user_alive(id)) 
                {
                    
u_noclip id ] = get_gametime ( )
                    
                    {
                        
set_user_noclip id)
                        
                        new 
Client[32
                        
get_user_name(id,Client,31)  
                        
                        
ColorChat 0GREY"^x04%s^x03 ' ^4%s^3 ' used the VIP Menu to get^4 Noclip^3!"prefixClient )
                        
set_task 10.0"CmdNoclipOff"id )            
                }
                else 
ColorChat(idGREY"^x04%s^x03 You're dead, you can't use this command!"prefix )
            }
        }
        case 
6:
        {
            
ShowGlowMenuColor(id)
        }
        case 
7:
        { 
            if ( 
get_gametime ( ) < u_drugs id ] + 15 )
            {
                
ColorChat idGREY"^x04%s^x03 You must wait^4 %i^3 seconds before you can use drugs."prefixfloatround u_drugs id ] + 15 get_gametime ( ) + ) )
                return 
PLUGIN_HANDLED
            
}
            else
            {
                if(
is_user_alive(id)) 
                {
                    
u_drugs id ] = get_gametime ( )
                    
                    
ShowDrug(id)
                }
                else 
ColorChat(idGREY"^x04%s^x03 You're dead, you can't use this command!"prefix )
            }
        }
        case 
8:
        { 
            if ( 
get_gametime ( ) < u_map id ] + 600 )
            {
                
ColorChat idGREY"^x04%s^x03 You must wait^4 %i^3 seconds before you can vote map."prefixfloatround u_map id ] + 600 get_gametime ( ) + ) )
                return 
PLUGIN_HANDLED
            
}
            else
            {
                
Startmapvote id )
            }
        }
        case 
9:
        { 
Can anyone fix these errors for me please?

Last edited by Bloods; 05-10-2014 at 20:38.
Bloods is offline
 


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 09:35.


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