strtok problem

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • also bei mir ist es so


    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9269) : error 017: undefined symbol "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;
    }



    EDIT::


    da noch was




    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9092) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9098) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9104) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9109) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9114) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9119) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9167) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9179) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9185) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9226) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9255) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9260) : error 079: inconsistent return types (array & non-array)
    C:\Users\BceX\Desktop\Scriptingfiles\gamemodes\ASD2.pwn(9266) : error 079: inconsistent return types (array & non-array)


    kann einer bitte helfen ^^

    Einmal editiert, zuletzt von [NeXt]Ed.F ()