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

Quote:
Originally Posted by 11530 View Post
Assuming it is what I think it is, this is why I dislike IsValidClient stocks...

e.g. Their IsValidClient requires that attacker and victim be <= MaxClients so that hurts[victim] or vampiro[attacker] doesn't error later.
I would rather prefer that it be a native function instead, since it's so commonly used.

That, or at least allow try/catch statements in sourcepawn (which Voided said on a thread of mine that it's pending to come in a future sourcepawn version).

Invalid client exceptions are one of the biggest pains in the ass with sourcemod that are annoying to circumvent.
Potato Uno is offline