25.01.2011, 18:22
Quote:
Код:
E:\pwn(1051) : error 017: undefined symbol "cmd" E:\pwn(1051) : error 017: undefined symbol "tmp" E:\pwn(1051) : error 017: undefined symbol "idx" E:\pwn(1051) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Код:
stock 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; }