Hallo ich hab heute ein Error mit strtok
Zeilen:
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;
}
Errors:
C:\Users\AYDIN ALANYALI\Desktop\SoL\gamemodes\Release.pwn(16831) : error 021: symbol already defined: "strtok"
C:\Users\AYDIN ALANYALI\Desktop\SoL\gamemodes\Release.pwn(16846) : error 047: array sizes do not match, or destination array is too small
Bitte hilft mir
MfG