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;
}
Вот во всех подобных функциях у мну всегда эрроры
типа в строк
D:\samp022server.win32\gamemodes\lvdm.pwn(7810) : error 021: symbol already defined: "strtok"
D:\samp022server.win32\gamemodes\lvdm.pwn(7825) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Я не понимаю что нада зделать.....Обьесните?