From e6129ab2d9bfadccd05567e4e542d1c397ba8cc5 Mon Sep 17 00:00:00 2001 From: Impact Date: Fri, 21 May 2021 10:45:42 +0200 Subject: [PATCH] Update FindEntityByClassname docs (#1491) Makes it a little bit clearer that `startEnt` isn't just an index to start searching from and that passing an invalid one can throw an error --- plugins/include/sdktools_functions.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/include/sdktools_functions.inc b/plugins/include/sdktools_functions.inc index 7c11dc29..8acbd81c 100644 --- a/plugins/include/sdktools_functions.inc +++ b/plugins/include/sdktools_functions.inc @@ -119,11 +119,11 @@ native void SlapPlayer(int client, int health=5, bool sound=true); /** * Searches for an entity by classname. * - * @param startEnt The entity index after which to begin searching from. + * @param startEnt A valid entity's index after which to begin searching from. * Use -1 to start from the first entity. * @param classname Classname of the entity to find. * @return Entity index >= 0 if found, -1 otherwise. - * @error Lack of mod support. + * @error Lack of mod support or invalid start entity. */ native int FindEntityByClassname(int startEnt, const char[] classname);