Doubt, pick up names times
I wanted to know if this code is correct to get a player's name from each team.
if (cs_get_user_team (ibestplayerT) == CS_TEAM_T) { get_user_name (ibestplayerT, xPlayerNameT, 31) } if (cs_get_user_team (ibestplayerCT) == CS_TEAM_CT) { get_user_name (ibestplayerCT, xPlayerNameCT, 31) } |
Re: Doubt, pick up names times
Judging from variable name 'ibestplayerT', you know that he is a Terrorist, so why are you still checking his team? Same goes for ibestplayerCT.
|
Re: Doubt, pick up names times
Quote:
|
Re: Doubt, pick up names times
It does not matter what team player is, you can still get his name in "universal" way.
|
Re: Doubt, pick up names times
Quote:
|
Re: Doubt, pick up names times
You need to tell me what the purpose of the plugin is so I can judge the correctness.
|
Re: Doubt, pick up names times
Quote:
|
Re: Doubt, pick up names times
Send the full code.
|
Re: Doubt, pick up names times
There is an entire section related for help about scripting. Why did you post in the plugin requests one?
|
Re: Doubt, pick up names times
Quote:
|
All times are GMT -4. The time now is 04:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.