26 Err Wtf?

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
  • hey Community ,
    ich hab da mal mein Server compilled und irgendwie sind da jz 26 Errors.
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(6266) : warning 225: unreachable code
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19217) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19217) : error 033: array must be indexed (variable "cmd")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19924) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19924) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19958) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(19958) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20310) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20310) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20535) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20535) : error 033: array must be indexed (variable "x_nr")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20545) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20545) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20575) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20575) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20619) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20619) : error 033: array must be indexed (variable "x_nr")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20629) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20629) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20659) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20659) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20798) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20798) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20806) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20806) : error 033: array must be indexed (variable "tmp")
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20831) : error 017: undefined symbol "strtok"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(20831) : error 033: array must be indexed (variable "tmp")


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.

  • Dir fehlt die Strtok Funktion:


    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;
    }

  • C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(6266) : warning 225: unreachable code
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(25283) : error 037: invalid string (possibly non-terminated string)
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(25283) : error 017: undefined symbol "FFFFFF"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(25283) : error 017: undefined symbol "stelv"
    C:\Users\PCSPEZIALIST\Desktop\SAMPSERVER&SO\gamemodes\XER.pwn(25283) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.
    wieder etwas Neues :D

  • if (strcmp("/serverinfo", cmdtext, true, 10) == 0)
    {
    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],rest[1500];
    format(string1, sizeof string1, "{FFFFFF}Projektleiter: [XE]Mr.Floyd | [XE]MuKkI");
    format(stringx, sizeof(stringx),"{FFFFFF}stelv.Projektleiter: );
    format(string2, sizeof string2, "{FFFFFF}Teamspeak Inhaber:");
    format(string3, sizeof string3, "{FFFFFF}Forum Inhaber:");
    format(string3, sizeof string3, "{FFFFFF}Scripter: [XE]MuKkI");
    format(string4, sizeof string4, "{FFFFFF}Script Version: {FF00FF}v%s {FFFFFF}", VERSION);
    format(string5, sizeof string5, "Forumsadresse: %s", FORUMURL);
    format(string6, sizeof string6, "TeamSpeak³ Ip : %s", TEAMSPEAKIP);
    format(rest, sizeof rest, "%s\n%s\n%s\n%s\n\n%s\n%s\n", string1,stringx,string2,string3,string4,string5,string6);
    ShowPlayerDialog(playerid,108,DIALOG_STYLE_MSGBOX, "Serverinformation",rest,"Fertig","");
    return 1;
    }

  • if (strcmp("/serverinfo", cmdtext, true, 10) == 0)
    {
    new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],rest[1500];
    format(string1, sizeof string1, "{FFFFFF}Projektleiter: [XE]Mr.Floyd | [XE]MuKkI");
    format(stringx, sizeof(stringx),"{FFFFFF}stelv.Projektleiter: ");
    format(string2, sizeof string2, "{FFFFFF}Teamspeak Inhaber:");
    format(string3, sizeof string3, "{FFFFFF}Forum Inhaber:");
    format(string3, sizeof string3, "{FFFFFF}Scripter: [XE]MuKkI");
    format(string4, sizeof string4, "{FFFFFF}Script Version: {FF00FF}v%s {FFFFFF}", VERSION);
    format(string5, sizeof string5, "Forumsadresse: %s", FORUMURL);
    format(string6, sizeof string6, "TeamSpeak³ Ip : %s", TEAMSPEAKIP);
    format(rest, sizeof rest, "%s\n%s\n%s\n%s\n\n%s\n%s\n", string1,stringx,string2,string3,string4,string5,string6);
    ShowPlayerDialog(playerid,108,DIALOG_STYLE_MSGBOX, "Serverinformation",rest,"Fertig","");
    return 1;
    }


    Mach es mal so