пля. пропишу инклуды в мод, выскакивают ошибка не по теме D:\Games\nwservspec.pwn(12847) : error 021: symbol already defined: "strtok"
D:\Games\nwservspec.pwn(12862) : error 047: array sizes do not match, or destination array is too small
D:\Games\nwservspec.pwn(16301) : error 047: array sizes do not match, or destination array is too small
D:\Games\nwservspec.pwn(18368) : error 047: array sizes do not match, or destination array is too small
D:\Games\nwservspec.pwn(20090) : warning 219: local variable "mod" shadows a variable at a preceding level
удалю, все норм.
Code
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
это из PayDay. Ничего с дини связано не должно быть... =(
помогите плиз