carol_98 Posted August 26, 2011 Report Share Posted August 26, 2011 Deci am luat un sistem de masini cu 3 sloturi si imi da 2 erori : error 017: undefined symbol "strotok" sierror 033: array must be indexed (variable "x_nr")La liniiilea astea:new x_nr[256]; x_nr = strotok(cmdtext, idx); if(!strlen(x_nr)) { Link to comment Share on other sites More sharing options...
IstuntmanI Posted August 26, 2011 Report Share Posted August 26, 2011 Pune undeva in script asta:strtok(const stringstrtok[], &index) { new length = strlen(stringstrtok); while ((index < length) && (stringstrtok[index] <= ' ')) { index++; } new offset = index, result[20]; while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = stringstrtok[index]; index++; } result[index - offset] = EOS; return result; } Link to comment Share on other sites More sharing options...
Question
carol_98
Deci am luat un sistem de masini cu 3 sloturi si imi da 2 erori :
error 017: undefined symbol "strotok"
si
error 033: array must be indexed (variable "x_nr")
La liniiilea astea:
new x_nr[256];
x_nr = strotok(cmdtext, idx);
if(!strlen(x_nr))
{
Link to comment
Share on other sites
1 answer to this question
Recommended Posts