29.11.2008, 09:08
Quote:
Originally Posted by SuperS82
Very nice but I get one problem..
gf-los-santos.pwn(2095) : error 021: symbol already defined: "strtok" gf-los-santos.pwn(2111) : error 047: array sizes do not match, or destination array is too small and my stock strtok looks like this: //----------------------[ strtok() ] ------------------------------- 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; } Any suggestions?! |
If it didn't work then press undo and it'll be back.