diff -r c406cafbc312 -r 54a5b5b35e89 plugins/include/sourcemod.inc --- a/plugins/include/sourcemod.inc Fri Mar 02 09:15:54 2007 +0000 +++ b/plugins/include/sourcemod.inc Fri Mar 02 19:10:44 2007 +0000 @@ -37,7 +37,6 @@ #include #include #include -#include /** * Declare this as a struct in your plugin to expose its information. @@ -106,6 +105,18 @@ */ native Handle:GetMyHandle(); + +/** + * Aborts the current callback and throws an error. This function + * does not return in that no code is executed following it. + * + * @param format String format. + * @param ... Format arguments. + * @noreturn + * @error Always! + */ +native ThrowError(const String:fmt[], {Handle,Float,String,_}:...); + /** * Logs a generic message to the HL2 logs. * @@ -210,3 +221,4 @@ #include #include +#include