Raised This Month: $ Target: $400
 0% 

[help]How many else can i do in case?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-17-2011 , 05:20   Re: [help]How many else can i do in case?
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
Explain what you're trying to do


PHP Code:
case 1:
    {
        if(
g_bBoght[id][silver_lighet])
        {
            
ColorChat(idGREEN,"%s You Cant Buy This Item 2 Time's!",PREFIX)
        }
        else
        {
            new 
cost get_pcvar_num(silver_lighet_cost);
            
            if(
money >= cost)
            {
                
cs_set_weapon_ammo(give_item(id,"weapon_deagle")
                
g_bBoght[id][silver_lighet] = true
                cs_set_user_bpammo
(idCSW_DEAGLE1)
                
cs_set_user_money(idmoney -cost)
                
                
ColorChat(idGREEN,"%s You Just Bought a ^x04 silver Light!"PREFIX);
            }
            else
            {
                if(!
is_user_alive(id)
                {
                    
Colorchat(.....)
        }
    }

Im trying to Get how many else u can have


other example

PHP Code:
case 1:
    {
        if(
somting)
        {
            
//somting
        
}
        else
        {
            
//somting
        
}
        else
        {
            
//somting
        
}
        else
        {
            
//somting
        
}
        
    }

can i do it like that?

Last edited by 2reason2kill; 06-17-2011 at 05:23.
2reason2kill 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 23:30.


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