From 2e835df3809bfd35b99282759fd64786f594bf40 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 30 Dec 2006 19:01:23 +0000 Subject: [PATCH] tiny fixes --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40239 --- plugins/include/string.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 4a8e4e96..7498a575 100644 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -57,9 +57,9 @@ native StrCompare(const String:str1[], const String:str2[], bool:caseSensitive=t * If false, comparison is case insensitive. * @return True if equal, false otherwise. */ -stock StrEqual(const String:str1[], const String:str2[], bool:caseSensitive=true) +stock bool:StrEqual(const String:str1[], const String:str2[], bool:caseSensitive=true) { - return (StrCompare(str1, str2, caseSensitive)); + return (StrCompare(str1, str2, caseSensitive) == 0); } /** @@ -107,5 +107,6 @@ native Float:StringToFloat(const String:str[]); * @param str Buffer to store string in. * @param maxlength Maximum length of string buffer. * @param num Floating point number to convert. + * @return Number of cells written to buffer. */ -native Float:FloatToString(String:str[], maxlength, Float:num); +native FloatToString(String:str[], maxlength, Float:num);