error 010: invalid function or declaration
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;
}
return 0; //ERROR HERE!!!!!!!!!!!!!!!!!
}
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; }
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;
return 0; //ERROR HERE!!!!!!!!!!!!!!!!!
}
C:\Users\Maki\Desktop\server 0.3d\filterscripts\TwinkisFS.pwn(2920) : warning 225: unreachable code C:\Users\Maki\Desktop\server 0.3d\filterscripts\TwinkisFS.pwn(2920) : error 079: inconsistent return types (array & non-array) |
Return 0;