31.01.2015, 00:50
Have you decleared strtok function?
Read the wiki: https://sampwiki.blast.hk/wiki/Strtok
You have to add this:
To your code.
Anyway, i really suggest you replacing d_cmd with ZCMD and Strtok with SSCANF.
Read the wiki: https://sampwiki.blast.hk/wiki/Strtok
You have to add this:
Код:
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; }
Anyway, i really suggest you replacing d_cmd with ZCMD and Strtok with SSCANF.