Raised This Month: $ Target: $400
 0% 

Loose Indenetation Warning FIX.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 03-25-2017 , 10:24   Re: Loose Indenetation Warning FIX.
Reply With Quote #1

Code:
public CmdGodMode( id )  
{  
    if( !is_user_alive( id ) || !g_bTeleport[ id ] )  
        return PLUGIN_HANDLED  
         
        set_pev(id,pev_takedamage,DAMAGE_NO) 
        set_task(20.0,"RemoveGodM",id+TASK_REMOVEGODMODE) 
     
    return PLUGIN_HANDLED  
}
->

Code:
public CmdGodMode( id )  
{  
    if( !is_user_alive( id ) || !g_bTeleport[ id ] )  
        return PLUGIN_HANDLED  
         
    set_pev(id,pev_takedamage,DAMAGE_NO) 
    set_task(20.0,"RemoveGodM",id+TASK_REMOVEGODMODE) 
     
    return PLUGIN_HANDLED  
}
also remove the second set of curly brackets from this part:
Code:
case 2:  
                {  
                    {  
                        give_item( id, "weapon_hegrenade" )  
                        print_colorchat( id, "!t%s !yYou choose !gHE", szTag )  
                    }  
                }

Last edited by jimaway; 03-25-2017 at 10:26.
jimaway is offline
Reply



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 17:55.


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