Raised This Month: $ Target: $400
 0% 

Getting team number function with cstrike


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-26-2009 , 05:09   Getting team number function with cstrike
Reply With Quote #1

Topic title may be a bit confusing, but can't think of anything else. Whenever I use cs_get_user_team() in a function like this, it doesn't work. Is there anything obvious that I've done wrong or... something I don't know.

PHP Code:
// Function to get alive team count
fnGetAliveTeamCount(CsTeams:Team)
{
    new 
iCount 0;
    for(new 
i<= g_iMaxPlayersi++)
    {
        if(
cs_get_user_team(i) == Team)
            ++
iCount;
    }
    
    return 
iCount;

shadow.hk is offline
Send a message via MSN to shadow.hk
 



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 18:19.


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