24.09.2009, 17:17
The error codes and Numbers.
The piece of script that it is having a problem with.
I don't know how it strtok is already defined. So. if anyone knows what can cause these errors or knows a trick to fixing them please let me know. Thanks in advance for any help, You guys may give me .
Код:
pwn(3313) : error 021: symbol already defined: "strtok" pwn(3328) : error 047: array sizes do not match, or destination array is too small
Код:
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; }