cs_get_user_team error (HELP)
Code:
L 01/04/2021 - 06:38:38: [CSTRIKE] Invalid player 8 (not in-game)Code:
L 01/04/2021 - 06:38:55: [CSTRIKE] Invalid player 8 (not in-game)PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: cs_get_user_team error (HELP)
check if user ("attacker") is connected.
|
Re: cs_get_user_team error (HELP)
Always check if the player is connected before using "cs_get_user_team".
|
Re: cs_get_user_team error (HELP)
I wouldn't say you'd always need to check if a player is connected before calling cs_get_user_team().
In scenarios where the player could be disconnected at the time it is called would be appropriate. A good example would be for the killer in a take damage or death event since this could result from a grenade throw and they disconnect immediately after, subsequently killing someone. But in a take damage event, the victim cannot be disconnected so calling it would be a waste. |
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.