Частично убраны ошибки при компиляции.

This commit is contained in:
2011-09-18 08:09:26 +00:00
parent 341392ca54
commit bae02ff516
2 changed files with 4 additions and 4 deletions

View File

@@ -7590,17 +7590,17 @@ public PayDay()
return 1;
}
strtok(const string[], &index)
strtok(const string[], &index, const delimiter = ' ')
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
while ((index < length) && (string[index] <= delimiter))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
while ((index < length) && (string[index] > delimiter) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;

View File

@@ -93,7 +93,7 @@ public FixRus(string[])
stock strlower(txt[])
{
new tmp[MAX_TEXTSTR];
new tmp[512];
tmp[0]=0;
if (txt[0]==0) return tmp;
new i=0;