Update compiler and includes to version 1.7.0.

This commit is contained in:
Richard Helgeby
2015-03-21 15:43:24 +01:00
parent 743d17e05a
commit 5ec3694535
54 changed files with 4087 additions and 1599 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;
}
}
}