Comparing ways of getting team
Hi developers,
I would like to know which way of getting team is the fastest. Can someone show me benchmark of PHP Code:
|
Re: Comparing ways of getting team
1 and 2 not used in cs
3 and 4 are the same. |
Re: Comparing ways of getting team
Wrote for newbies.
It is recommended using macros instead of writing numbers right in the code. PHP Code:
I'm not sure is it required to check pev_valid(id) == 2 before using get_pdata_int in that particular case... |
Re: Comparing ways of getting team
Then use cs_get_user_team...
Anyway, use get_user_team |
Re: Comparing ways of getting team
iTeam = get_user_team(id) returns wrong result for dead players who has changed team after death in AMXX 1.8.2 devs ;)
|
Re: Comparing ways of getting team
Quote:
|
| All times are GMT -4. The time now is 16:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.