Invalid player 10 | native "cs_get_user_team"
Code:
L 09/12/2013 - 20:34:24: [CSTRIKE] Invalid player 10PHP Code:
|
Re: Invalid player 10 | native "cs_get_user_team"
You are doing it wrong. Tempid is the pressed option from the menu, you should use find_player() with flag k to retrieve the index of the player.
https://forums.alliedmods.net/showth...364#PlayerMenu |
Re: Invalid player 10 | native "cs_get_user_team"
There's nothing saying he isn't passing the id in that string, that's what I would do but in integer form in the first cell.
The players probably left between the opening of the menu and when the selection was made. |
Re: Invalid player 10 | native "cs_get_user_team"
Yes, you are right but he needs to retrieve the id before checking if the player is connected. Sorry, it's my fault that I didn't notice there isn't a check for that. :bee:
|
Re: Invalid player 10 | native "cs_get_user_team"
I would not recommend using the entity ID, it can cause a race condition.
I would use userid. |
| All times are GMT -4. The time now is 19:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.