15.04.2011, 14:05
¬¬
pawn Код:
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;
}
Код:
C:\Documents and Settings\SAMP-SERVER\Desktop\ccar.pwn(156) : error 021: symbol already defined: "strtok" C:\Documents and Settings\SAMP-SERVER\Desktop\ccar.pwn(171) : 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.