diff --git a/gamemodes/penls.pwn b/gamemodes/penls.pwn index 71e0507..c99c707 100644 --- a/gamemodes/penls.pwn +++ b/gamemodes/penls.pwn @@ -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++; diff --git a/include/rus_text.inc b/include/rus_text.inc index 026ad31..a9ca513 100644 --- a/include/rus_text.inc +++ b/include/rus_text.inc @@ -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;