Run time error
Quote:
PHP Code:
|
Re: Run time error
Code:
Why not? Code:
Quote:
|
Re: Run time error
The error says that the player is not valid, it can mean that user with Index '5' doesn't not exit or (i'm not sure at this hour because i'm very sleepy) it is not alive, as CrazY say you can add an is_user_alive() filter.
But i'm giving you an friendly advice and say that you should give-up checking for players with this method: PHP Code:
|
Re: Run time error
There isnt enough code provided....
And Crazy its unnecessary to check if entity is valid... Since find ent returns a vaild entities id if its above 0 And as craxor said it would be better if you looped throw get players instead of get maxplayers , it would better to loop throw all maxplayers if you wanted to reset players arrays.... And not execute .actions on them |
Re: Run time error
Quote:
|
| All times are GMT -4. The time now is 22:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.