Raised This Month: $ Target: $400
 0% 

get_players & cs_get_user_team is inaccurate


Post New Thread Reply   
 
Thread Tools Display Modes
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-05-2014 , 10:38   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #11

I still don't get it. I guess my mind is elsewhere today because i can't figure out what i am doing wrong, let alone how to fix it.

I have tried everything i found about the problem but none worked. If you know a possible fix, please don't hesitate to write it here. Thanks guys.
bLacK-bLooD is offline
neverminde
Senior Member
Join Date: Feb 2011
Location: St.Piter
Old 10-05-2014 , 10:54   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #12

Look through how it works on test server ( not what you want, but can help to understand )
PHP Code:
                    case CS_TEAM_T
                    { 
                        if(
is_user_alive(id)) { 
                            
ColorChat(0RED,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                        } 
                        else if(!
is_user_alive(id)) { 
                            
ColorChat(0RED,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                             
                        } 
                    } 
                    case 
CS_TEAM_CT
                    { 
                        if(
is_user_alive(id)) { 
                            
ColorChat(0BLUE,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                        } 
                        else if(!
is_user_alive(id)) { 
                            
ColorChat(0BLUE,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                             
                        }
                    } 
                    case 
CS_TEAM_SPECTATOR
                    { 
                        
ColorChat(0GREY,"*SPEC* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                    } 
neverminde is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-05-2014 , 12:58   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #13

Quote:
Originally Posted by neverminde View Post
Look through how it works on test server ( not what you want, but can help to understand )
PHP Code:
                    case CS_TEAM_T
                    { 
                        if(
is_user_alive(id)) { 
                            
ColorChat(0RED,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                        } 
                        else if(!
is_user_alive(id)) { 
                            
ColorChat(0RED,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                             
                        } 
                    } 
                    case 
CS_TEAM_CT
                    { 
                        if(
is_user_alive(id)) { 
                            
ColorChat(0BLUE,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                        } 
                        else if(!
is_user_alive(id)) { 
                            
ColorChat(0BLUE,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                             
                        }
                    } 
                    case 
CS_TEAM_SPECTATOR
                    { 
                        
ColorChat(0GREY,"*SPEC* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat); 
                    } 
Do i really have a bad day or is that exactly my code but only rang placed after the nick?
bLacK-bLooD is offline
neverminde
Senior Member
Join Date: Feb 2011
Location: St.Piter
Old 10-05-2014 , 15:23   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #14

yeah its yours, but with right ^x placing without using team color.
neverminde is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-06-2014 , 16:22   Re: get_players & cs_get_user_team is inaccurate
Reply With Quote #15

Quote:
Originally Posted by neverminde View Post
yeah its yours, but with right ^x placing without using team color.
That worked, thanks for the help !
bLacK-bLooD 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 19:16.


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