View Single Post
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 01-23-2015 , 21:51   Re: Array index is out of bounds
Reply With Quote #8

Quote:
Originally Posted by ddhoward View Post
What constitutes a "valid client" differs depending on the plugin, the function, etc.

I made this stock for use in all my plugins a while ago, but even this will have places where something more specific is needed.
A native that makes sure that the "client [BLAH] is not valid" exception (returns true if the exception isn't thrown, false otherwise) isn't thrown doesn't sound like it would "differ" from plugin to plugin. I don't think any plugin would want exceptions in their code.

But again, try/catch statements would also solve the problem if they existed in the first place.

/irrelevant derailing that doesn't help the OP

Last edited by Potato Uno; 01-23-2015 at 21:52.
Potato Uno is offline