14.09.2016, 14:21
Olб, bom dia, mesmo com a strtok ainda continua com os seguintes errors:
Jб coloquei o strtok dentro da callback, no final do gamemode, antes das callbacks, em baixo das includes em qualquer lugar, ele dб esses errors.
A linha й esta:
O cуdigo da strtok que eu uso й este:
Jб, sem a strtok ele dб esses errors:
Nгo sгo sу estes aн, sу coloquei atй aн, durante as prуximas linhas ele fica repetindo-se os mesmos errors.
No total sгo 26 errors, se precisarem das linhas me falem.
Код:
error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
A linha й esta:
Код:
return[index - offset] = EOS;
Код:
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++; } return[index - offset] = EOS; return result; }
Код:
undefined symbol "strtok" undefined symbol "strtok" undefined symbol "strtok" undefined symbol "strtok" undefined symbol "strtok" undefined symbol "strtok" undefined symbol "strtok" symbol is assigned a value that is never used: "index" undefined symbol "strtok" array must be indexed (variable "cmd") undefined symbol "strtok" array must be indexed (variable "tmp") undefined symbol "strtok"
No total sгo 26 errors, se precisarem das linhas me falem.