12.03.2012, 20:08
Код:
C:\Users\AsR\Servidores\FS\helpers.pwn(490) : error 021: symbol already defined: "strtok" C:\Users\AsR\Servidores\FS\helpers.pwn(504) : error 047: array sizes do not match, or destination array is too small
Код:
489: strtok(const string[], &index)
490: {
491: new length = strlen(string);
492: while ((index < length) && (string[index] <= ' '))
493: {
494: index++;
495: }
496: new offset = index;
497: new result[20];
498: while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
499: {
500: result[index - offset] = string[index];
501: index++;
502: }
503: result[index - offset] = EOS;
504: return result;
505: }

