diff --git a/plugins/include/helpers.inc b/plugins/include/helpers.inc index c4e92245..d30c3853 100644 --- a/plugins/include/helpers.inc +++ b/plugins/include/helpers.inc @@ -251,7 +251,7 @@ stock FindTarget(client, const String:target[], bool:nobots = false, bool:immuni int len; char buffer[64]; - while (!file.IsEndOfFile() && file.ReadLine(buffer, sizeof(buffer))) + while (!file.EndOfFile() && file.ReadLine(buffer, sizeof(buffer))) { TrimString(buffer); diff --git a/plugins/include/regex.inc b/plugins/include/regex.inc index 03a1bd16..a111dbe7 100644 --- a/plugins/include/regex.inc +++ b/plugins/include/regex.inc @@ -155,7 +155,7 @@ methodmap Regex < Handle */ stock int SimpleRegexMatch(const char[] str, const char[] pattern, int flags = 0, char[] error="", int maxLen = 0) { - Regex regex = Regex(pattern, flags, error, maxLen); + Regex regex = new Regex(pattern, flags, error, maxLen); if (!regex) return -1;