From f66a904c312eb9e24843d51a5be0afce807a7bfb Mon Sep 17 00:00:00 2001 From: XeroX Date: Sun, 2 Apr 2023 23:46:53 +0200 Subject: [PATCH] Update SDKCall documentation for string return type (#1961) * Update SDKCall return information This adds the information that if the return value is a string then SDKCall will return the number of bytes written. * Update description * Add info if the string is null --- plugins/include/sdktools.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/include/sdktools.inc b/plugins/include/sdktools.inc index dcce2eb4..07fc55f8 100644 --- a/plugins/include/sdktools.inc +++ b/plugins/include/sdktools.inc @@ -194,6 +194,7 @@ native Handle EndPrepSDKCall(); * rules will result in crashes or wildly unexpected behavior! * * If the return value is a float or integer, the return value will be this value. + * If the return value is a string, the value returned by the function will be the number of bytes written, or -1 for NULL. * If the return value is a CBaseEntity, CBasePlayer, or edict, the return value will * always be the entity index, or -1 for NULL. *