Raised This Month: $ Target: $400
 0% 

Problem compiling


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 09-29-2009 , 12:40   Problem compiling
Reply With Quote #1

can some one correct becouse when i compile i get these errors:

Code:
 
//AMXXPC compile.exe
// by the AMX Mod X Dev Team

//// RoundStartEnd.sma
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(145) : warning 217: loose indentation
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(150) : warning 217: loose indentation
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(150) : error 029: invalid expression, assumed zero
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(150) : error 017: undefined symbol "logevent_round_s
tart"
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(163) : error 029: invalid expression, assumed zero
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(163) : error 017: undefined symbol "logevent_round_e
nd"
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(176) : warning 217: loose indentation
// D:\Dovydo\Counter - strike Failai\Addonai\L4DPlague\L4DPlague\addons\amxmodx\
scripting\RoundStartEnd.sma(180) : error 001: expected token: "}", but found "-e
nd of file-"
//
// 5 Errors.
// Could not locate output file D:\Dovydo\Counter - strike Failai\Addonai\L4DPla
gue\L4DPlague\addons\amxmodx\scripting\compiled\RoundStartEnd.amx (compile faile
d).
//
// Compilation Time: 0,14 sec
// ----------------------------------------
Press enter to exit ...
The code:

PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta> 
    #include <amxmisc>
     
    #define PLUGIN "Ultimate Battle Plugin"
    #define AUTHOR "DoviuX"
    #define VERSION "1.3"
    #define fm_cs_set_user_nobuy(%1)    set_pdata_int(%1, 235, get_pdata_int(%1, 235) & ~(1<<0) ) 
     
    
new const gStartSounds[][] =
    { 
        
"UBP/Start/Start1.wav",
        
"UBP/Start/Start2.wav",
        
"UBP/Start/Start3.wav"
    
};
    
    new const 
gEndSounds[][] = 
    { 
        
"UBP/End/End1.wav",
        
"UBP/End/End2.wav",
        
"UBP/End/End3.wav"
    
};
    
    new const 
music[][] = {
 
"UBP/Songs/Song1.mp3",
 
"UBP/Songs/Song2.mp3",
 
"UBP/Songs/Song3.mp3",
 
"UBP/Songs/Song4.mp3",
 
"UBP/Songs/Song5.mp3",
 
"UBP/Songs/Song6.mp3",
 
"UBP/Songs/Song7.mp3",
 
"UBP/Songs/Song8.mp3",
 
"UBP/Songs/Song9.mp3"
    
}
    new const 
Float:music_lenght[] = {
     
226.0,
     
206.0,
     
169.0,
     
226.0,
     
206.0,
     
169.0,
     
226.0,
     
206.0,
     
169.0
    
}
    new 
bool:gPluginStatus true;
    new 
listening[33]
    new 
g_Maxplayers
    
public plugin_cfg() 
    { 
     
register_plugin("No Buy""VERSION""AUTHOR"
     
register_message(get_user_msgid("StatusIcon") , "Message_StatusIcon"
    }  
    
    public 
plugin_precache() 
    {
        new 
i;
        
        for ( 
0sizeof gStartSoundsi++ )
        {   
            
precache_soundgStartSounds] );
        }
        
        for ( 
0sizeof gEndSoundsi++ )
        {   
            
precache_soundgEndSounds] );
        }
        for(new 
0sizeof musici++)
        
precache_generic(music[i])
    }
    public 
plugin_init()
    {
        
register_pluginPLUGINVERSIONAUTHOR );
         
        
register_logevent"logevent_round_start"2"1=Round_Start" );
        
register_logevent"logevent_round_end"2"1=Round_End" );
 
g_Maxplayers get_maxplayers( );
         
        
register_clcmd"say /togglesound""ClientCommand_ToggleSound"ADMIN_CFG );
        
register_clcmd"say_team /togglesound""ClientCommand_ToggleSound"ADMIN_CFG );
        
register_clcmd("say /ubpstop","stop")
        
register_clcmd("say_team/stop","stop")
    
        
register_clcmd("say /ubpplay","play")
        
register_clcmd("say_team /ubpplay","play")
    }
    
    public 
ClientCommand_ToggleSound ( const id, const level, const cid )
    {
        if ( 
cmd_accessidlevelcid) )
        {
            
gPluginStatus = !gPluginStatus;
            return 
PLUGIN_HANDLED;
        }
        
        return 
PLUGIN_CONTINUE;
    }
    
    public 
Message_StatusIcon(iMsgIdMSG_DESTid
    { 
     static 
szIcon[5
     
get_msg_arg_string(2szIcon4
     if( 
szIcon[0] == 'b' && szIcon[2] == 'y' && szIcon[3] == 'z' 
     { 
         if( 
get_msg_arg_int(1) ) 
         { 
            
fm_cs_set_user_nobuy(id
             return 
PLUGIN_HANDLED 
         

     } 
     return 
PLUGIN_CONTINUE 
    
}  
    public 
stop(Client)
    {
        
client_cmd(Client"mp3 stop");
 
        if (
task_exists(Client))
                
remove_task(Client);
 
        
listening[Client] = 0;
    }  
    public 
play(id)
    {    
     if(!
listening[id])
        {
        new 
abc random_num(0,sizeof music 1)
        
        
client_cmd(id"mp3 play %s"music[abc])   
        
listening[id] = 1
        
        set_task
(music_lenght[abc],"stop",id)
    }
    else
    {
        
client_print(id,print_chat,"The music is already on!")
    }
    public 
logevent_round_start () 
    {
        if ( 
gPluginStatus )
        {
            
client_cmd0"spk %s"gStartSoundsrandomsizeof gStartSounds ) ] );
     
client_print(id,print_chat,"Plugin maded by DoviuX!")
     
client_cmd(0"mp3 play %s"music[random_num(0,sizeof music 1)])
            
            
set_hudmessage225225225, -1.00.2926.012.0 );
            
show_hudmessage0"The Ultimate Battle Has Begun !" ); 
        }
    }
    
    public 
logevent_round_end () 
    {
        if ( 
gPluginStatus )
        {
            
client_cmd0"spk %s"gEndSoundsrandomsizeof gStartSounds ) ] );
         for (new 
id 1id g_Maxplayersid++) { 
         if (
is_user_connected(id)) { 
             
client_cmd(id"mp3 stop"); 
 
  
listening[id] = 0
             if (
task_exists(id)) 
                 
remove_task(id);
     } 
            {
            
set_hudmessage225225225, -1.00.2926.012.0 );
            
show_hudmessage0"The Ultimate Battle Has ended !" ); 
        }
    } 
DoviuX is offline
Send a message via Skype™ to DoviuX
 


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 22:37.


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