07.01.2014, 12:50
hey guys i need help with strtok.. because i have puted it in my script but ill get this
the lines:
am i suppose to define anything else??
Код:
C:\Users\Erik\Desktop\Iconik-Gamings\gamemodes\IGamings.pwn(125) : error 021: symbol already defined: "strtok"
Код:
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; }