Getting team number function with cstrike
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:
|
Re: Getting team number function with cstrike
it looks fine, atleast you should check what player is alive..
|
Re: Getting team number function with cstrike
Quote:
|
Re: Getting team number function with cstrike
And new i -> new i = 1 ; Otherwise it looks fine.
|
Re: Getting team number function with cstrike
Start id should be 1 and not 0, also, don't forfet to retrieve maxplayers value.
PHP Code:
Also, if you only need alive players, you can use this passing team NAME : PHP Code:
|
Re: Getting team number function with cstrike
@Connor: shouldn't you use continue instead of return in the loop? otherwise it'll break out of the function and return a value of 0.
|
Re: Getting team number function with cstrike
He should, yes.
|
Re: Getting team number function with cstrike
Fixed.
|
| All times are GMT -4. The time now is 18:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.