Raised This Month: $ Target: $400
 0% 

[Optimize] Loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
e12harry
Member
Join Date: Apr 2010
Old 09-23-2011 , 03:07   Re: [Optimize] Loop
Reply With Quote #3

I think 3rd usage would be the best, but I would change one thing:
PHP Code:
    new iPlayers[32],iNum;
    
get_players(iPlayers,iNum,"ch");
    new 
player;
    for(new 
i;iNum;i++)
    {
        
player iPlayers[i];
        switch(
cs_get_user_team(player))
        {
            case 
CS_TEAM_SPECTATOR CS_TEAM_UNASSIGNED:
            {
                
/*Remove Players From Loop*/
                
continue;
            }

        }
        
MainMenu(player);
    } 
e12harry 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 19:35.


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