Hat dieser Error noch eine 2. Bedeutung

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
  • Moin leute, ich habe soeben mein GM 0.3e fertig gemacht, alles geschoben und verschoben nun wollte ich Compilen, es erscheind folgender Text:
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(220) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(619) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(753) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(753) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(771) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(771) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(815) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(815) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(837) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(870) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(953) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(953) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(953) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(961) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(983) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1176) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1203) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1206) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1356) : warning 202: number of arguments does not match definition
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1356) : warning 202: number of arguments does not match definition
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1369) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1374) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1387) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1404) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1416) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1429) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1438) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1438) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1455) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1472) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1484) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1497) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1497) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1510) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1530) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1608) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1622) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1622) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1667) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1667) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1729) : warning 219: local variable "hand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1729) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1739) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1755) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1782) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1804) : warning 219: local variable "hand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1804) : warning 219: local variable "handydatei" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1814) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1830) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1865) : warning 219: local variable "hand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1875) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1891) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1927) : warning 219: local variable "hand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1937) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(1953) : warning 219: local variable "formatierung" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2015) : warning 219: local variable "pID" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2015) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2015) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2015) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2028) : warning 219: local variable "hand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2029) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2029) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2264) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2265) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2265) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2435) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2436) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2436) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2441) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2441) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2441) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2488) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2491) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2491) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2593) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2593) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2593) : warning 219: local variable "freiehand" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2598) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2598) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2598) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2693) : error 001: expected token: ")", but found "-identifier-"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2693) : error 017: undefined symbol "rid"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2697) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2698) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2700) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2702) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2706) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2710) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2712) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2718) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2720) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2722) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2724) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2727) : error 021: symbol already defined: "format"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2728) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2731) : error 021: symbol already defined: "dini_Set"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2734) : error 021: symbol already defined: "dini_Set"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2737) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2740) : error 021: symbol already defined: "dini_Set"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2742) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2745) : error 021: symbol already defined: "dini_Set"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2750) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2752) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2755) : error 021: symbol already defined: "dini_Set"
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2757) : error 010: invalid function or declaration
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(2760) : error 021: symbol already defined: "dini_Set"


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



    26 Errors.


    Es fängt hier an
    public OnGameModeInit()//213
    {
    SetGameModeText("SCReallife");
    ConnectNPC("Roboi","Zivi");//Das erste steht für den Namen hier im Script, das 2te für den Namen der .rec Datei
    new extraini[50];
    new Hausdatei[50];
    new Autodatei[50];
    new handydatei[50];
    format(extraini,50,"extraini.txt");
    globale[nextcarID] = dini_Int(extraini,"cars");//222
    Für mich heist der Fehlöer, das die Variabeln schon wo anderst definiert wurden, das sind diese NICHT, sie werden in jedem public neu festgelegt.
    Gibt es noch eine 2. Bedeutung denn vor ein paar Monaten(hab heut wieder angenfangen) funktionierte das Compilen.

  • es endet mit diesen zeilen
    if(Vehicle[i][VentLeft] >= 1000) { AddVehicleComponent(car[i],Vehicle[i][VentLeft]); }
    }
    }
    }
    }
    return 1;
    }
    ich zähle mal durch um klammerfehler auszuschließen
    //edit hab gezählt alle klammern werden wieder geschlossen

  • Normalerweise bedeutet dieser Fehler ja, dass eine Variable mit diesem Namen schon vorhanden ist. In diesem Fall könnte dies durchaus der Fall sein. Klammere "OnGameModeInit" aus, und nimm das Standard Callback mal und kompiliere erneut, was passiert da?

  • das ganze geht heir weiter
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(753) : warning 219: local variable "pname" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(753) : warning 219: local variable "accFormat" shadows a variable at a preceding level
    C:\Scripting\samp server\The Sims RPG\Die E\samp03e_svr_win32\gamemodes\test.pwn(771) : warning 219: local variable "pname" shadows a variable at a preceding level
    errors. . . . . folgen 26


    Zeilen


    public OnPlayerConnect(playerid)//741
    {
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Roboi", true))
    {
    botids[0] = playerid;
    }
    return 1;
    }
    new pname[MAX_PLAYERS],accFormat[128];
    GetPlayerName(playerid,pname,sizeof pname);
    format(accFormat,sizeof accFormat,"Spieler/%s.datei",pname);
    if(fexist(accFormat))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Bitte logge dich ein","Weiter","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte gib dein gewünschtes Passwort ein","Weiter","Abbrechen");
    }
    return 1;
    }//756

  • Das ist mehr als komisch. Wie gesagt in diesem Callback ist auch kein Klammerfehler^^
    Würde mir den Serverordner von sa-mp.com erneut downloaden und nochmal alles säuberlich ersetzen, und dann neu kompilieren.

  • oke zum Verständnis:


    Ich habe alles entpackt in ein seperaten ordner, die pawn rüber gezogen, includes reingepackt mit dem neuen compiler gestartet, das ergebnis seht ihr hier.
    Heute mach ich nichts mehr
    //EDIT: Habe eben alles neu gedownloadet includes verschoben script verschoben, selbe errors.
    //PUSH Hat echt keiner ne ahnung was der Compiler von mir verlangt ?
    //EDIT: Für die die es interessiert ich habe den Fehler, er war in Zeile 2693 hier
    dcmd_give(playe rid, params[])

    3 Mal editiert, zuletzt von carlos1710 ()