Fix some syntax errors in include files.

This commit is contained in:
David Anderson
2014-11-09 02:03:09 -08:00
parent 22df518ab5
commit c37174cb97
5 changed files with 35 additions and 63 deletions
+6 -17
View File
@@ -433,30 +433,19 @@ stock CharToLower(chr)
* @return The index of the first occurrence of the character
* in the string, or -1 if the character was not found.
*/
stock FindCharInString(const String:str[], c, bool:reverse = false)
stock int FindCharInString(const char[] str, char c, bool reverse = false)
{
new i, len
len = strlen(str);
int len = strlen(str);
if (!reverse)
{
for (i = 0; i < len; i++)
{
if (!reverse) {
for (int i = 0; i < len; i++) {
if (str[i] == c)
{
return i;
}
}
}
else
{
for (i = len - 1; i >= 0; i--)
{
} else {
for (int i = len - 1; i >= 0; i--) {
if (str[i] == c)
{
return i;
}
}
}