26 Errors ? brauche Hilfe

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
  • Hallo liebe Scripter ich brauche mal eure Hilfe hierbei



    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(20493) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn (20937) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(20937) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(20937) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21102) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21102) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21114) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21114) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21126) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21126) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21183) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21183) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21334) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21334) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21344) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21344) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21366) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21366) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21401) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21401) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21409) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(21409) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(22540) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(22540) : error 033: array must be indexed (variable "tmp")
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(23176) : error 017: undefined symbol "strtok"
    C:\Users\Administrator\Desktop\GNR\Gamemodes\German-Nexus.pwn(23176) : error 033: array must be indexed (variable "tmp")


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


    Ich freue mich auf jede Antwort dankeschön .
    Ich möchte den Fehler sogerne weghaben :/

  • Was ist wenn du dashier unten ins Script einfügst ?


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

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Das ist das Letzt im Script



    playa = ReturnUser(tmp);
    if(IsPlayerConnected(playa))
    {
    SetPlayerInterior(playa, 0);
    SetPlayerPos(playa,-1640.5913,-2239.4180,31.4766);
    SendClientMessage(playa, COLOR_GRAD1, string);
    //
    PlayerTied[playa] = 0;
    InGangJail[playa] = 0;
    format(string, sizeof(string), "* Wheelman %s hat %s vom Gangjail befreit!", PlayerName(playerid), PlayerName(playa));
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    SendClientMessage(playerid,COLOR_GRAD1,"Du hast den gefangenen befreit!");
    SendFormatText(playerid,COLOR_GRAD1,"Wheelman %s hat dich aus dem Gangjail befreit!",PlayerName(playerid));
    ClearAnimations(playerid); // Spieler hört mit Anim auf
    }
    return 1;
    }




    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {


    new x = 0;
    while(x!=MAX_PLAYERS) {
    if( IsPlayerConnected(x) && GetPlayerState(x) == PLAYER_STATE_SPECTATING &&
    gSpectateID[x] == playerid && gSpectateType[x] == ADMIN_SPEC_TYPE_PLAYER )
    {
    SetPlayerInterior(x,newinteriorid);
    }
    x++;
    }
    }


    public StopAnim(playerid)
    {
    if (IsPlayerConnected(playerid))
    {
    ClearAnimations(playerid);
    }
    }
    spName(p)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(p, name,sizeof(name));
    return name;
    }


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