Raised This Month: $ Target: $400
 0% 

Problem with Ham_playerkilled_post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-19-2012 , 09:59   Problem with Ham_playerkilled_post
Reply With Quote #1

Hello there i got this error while taking Change team code from nikhilgupta345 plugin

Quote:
Error: Invalid expression, assumed zero on line 52
Error: Undefined symbol "Ham_PlayerKilled_Post" on line 52
Error: Undefined symbol "iKiller" on line 52
Error: Too many error messages on one line on line 52

Compilation aborted.
4 Errors.
PHP Code:
/* Plugin generated by AMXX-Studio */ 

        #include < amxmodx > 
        #include < cstrike > 
        #include < hamsandwich > 
        #include < fun > 
        #include < fakemeta > 
        #include < engine > 
        #include < xs > 

        #define PLUGIN "test" 
        #define VERSION "1.0" 
        #define AUTHOR "nikhilgupta345" 
    
    
new const g_szPrefix[ ] = "[Nightcrawler]";
            
/* Booleans */ 
    
new bool:g_bNCNextRound33 ]; 

    public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
RegisterHamHam_Killed,         "player""Ham_PlayerKilled_Post",         ); 
    } 
     
        public 
client_putinserverid 
        { 
        
g_bNCNextRoundid ] = false
        }      
        public 
Ham_PlayerKilled_Post(iVictimiKilleriShouldGib
        { 
            if( !
is_user_aliveiKiller ) ) 
            return 
HAM_IGNORED

        switch( 
cs_get_user_teamiKiller ) )
        { 
            case 
CS_TEAM_CT
            { 
                if( 
cs_get_user_teamiVictim ) == CS_TEAM_T 
                { 
                    
client_printiVictimprint_chat"%s You were killed by a human and are now one also!"g_szPrefix ); 
                    
cs_set_user_teamiVictimCS_TEAM_CT ); 
                     
                    if( !
g_bNCNextRoundiKiller ] ) 
                    { 
                        
client_printiKillerprint_chat"%s You killed a Night-Crawler and will be one next round!"g_szPrefix ); 
                        
g_bNCNextRoundiKiller ] = true
                    } 
                } 
            } 
             
        case 
CS_TEAM_T
        { 
            if( 
cs_get_user_teamiVictim ) == CS_TEAM_CT )
        { 
                
client_printiKillerprint_chat"%s You killed a human!"g_szPrefix ); 
                
client_printiVictimprint_chat"%s You were killed by a Night-Crawler!"g_szPrefix ); 
        }
    }

Can anybody help ?

Last edited by Moody92; 04-19-2012 at 11:13.
Moody92 is offline
 



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 07:46.


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