Raised This Month: $51 Target: $400
 12% 

Stock problem


Post New Thread Reply   
 
Thread Tools Display Modes
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 08-23-2013 , 14:59   Re: Stock problem
Reply With Quote #11

PHP Code:
        for(new index 1index <= g_MaxPlayersindex++)
        {
            if(!
is_user_connected(index))
            {
                        continue;
            }

            if(
is_user_alive(id) && is_user_alive(index))
            {
                if(
in_birthday[id])
                    
ColorChat(indexGREEN"[BIRTHDAY %d Years] ^x03%s^x01: %s"age[id], namesay)
                
                else
                    
ColorChat(indexGREEN"[%d Years] ^x03%s^x01: %s"age[id], namesay)
            }
            
            if(!
is_user_alive(id) && !is_user_alive(index))
            {
                if(
in_birthday[id])
                    
ColorChat(indexYELLOW"*DEAD* ^x04[BIRTHDAY %d Years] ^x03%s^x01: %s"age[id], namesay)
                
                else
                    
ColorChat(indexYELLOW"*DEAD* ^x04[%d Years] ^x03%s^x01: %s"age[id], namesay)
            }
        } 
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-23-2013 , 17:19   Re: Stock problem
Reply With Quote #12

Quote:
Originally Posted by pokemonmaster View Post
PHP Code:
        for(new index 1index <= g_MaxPlayersindex++)
        {
            if(!
is_user_connected(index))
            {
                        continue;
            }

            if(
is_user_alive(id) && is_user_alive(index))
            {
                if(
in_birthday[id])
                    
ColorChat(indexGREEN"[BIRTHDAY %d Years] ^x03%s^x01: %s"age[id], namesay)
                
                else
                    
ColorChat(indexGREEN"[%d Years] ^x03%s^x01: %s"age[id], namesay)
            }
            
            if(!
is_user_alive(id) && !is_user_alive(index))
            {
                if(
in_birthday[id])
                    
ColorChat(indexYELLOW"*DEAD* ^x04[BIRTHDAY %d Years] ^x03%s^x01: %s"age[id], namesay)
                
                else
                    
ColorChat(indexYELLOW"*DEAD* ^x04[%d Years] ^x03%s^x01: %s"age[id], namesay)
            }
        } 
still shuting down
__________________
Jhob94 is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-23-2013 , 17:24   Re: Stock problem
Reply With Quote #13

get_players()
__________________
Black Rose is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-23-2013 , 18:37   Re: Stock problem
Reply With Quote #14

well the most weird is that say_team hasnt any problem and the only diference is:
if(!is_user_alive(id) && is_user_alive(index))
to
if(!is_user_alive(id) && is_user_alive(index) && get_user_team(id) == get_user_team(index))
__________________

Last edited by Jhob94; 08-23-2013 at 18:37.
Jhob94 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 04:19.


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