Raised This Month: $ Target: $400
 0% 

Looping through all players and getting global variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 06-19-2009 , 02:53   Re: Looping through all players and getting global variable
Reply With Quote #6

Already tryied that trick Exo, when all players dead and have 0 tickets, it will print "Preds Remaining : 11"
So i've made this :
PHP Code:
    get_players(PlayersiNum"e""TERRORIST")
    
counted_spawns 0;
    if(
iNum 0)
    {
        for(
0iNum; ++i
        {
            if ( 
g_Tickets[Players[i]] > )
            {
                
counted_spawns += g_Tickets[Players[i]]
            }
        }
    } 
Still there are bug :/ When tickets goes from 21 to 11, it's stop :0 Writes "Preds Remaining : 11"
But I've check if g_Tickets[Players[i]] > 0 :/

Last edited by xbatista; 06-19-2009 at 02:58.
xbatista is offline
Send a message via Skype™ to xbatista
 



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 15:40.


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