Klammerfehler ?

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
  • Huhu BF !


    Koleghe hat irgendeinen Fehler gemacht
    wir wurschteln schon seid 2Stunden aber finden keine Lösung


    Hier der Fehler :




    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\pawno\include\M_Bot.inc(164) : error 017: undefined symbol "IsAnAdmin"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3391) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3401) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3411) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3429) : error 017: undefined symbol "IsAFahrschulVeh"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3442) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3452) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(3462) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4027) : error 017: undefined symbol "GetZoneColorOfFaction"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4138) : error 017: undefined symbol "OnPlayerCarLogin"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4419) : error 017: undefined symbol "SendIRCMessage"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4441) : error 017: undefined symbol "SendIRCMessage"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4473) : error 017: undefined symbol "SavePapers"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4710) : error 017: undefined symbol "OOCOff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4722) : error 017: undefined symbol "OOCOff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4740) : error 017: undefined symbol "SaveStuff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4742) : error 017: undefined symbol "OOCOff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4748) : error 017: undefined symbol "SaveStuff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4750) : error 017: undefined symbol "OOCOff"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4801) : error 017: undefined symbol "GetPlayerFaction"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4813) : error 017: undefined symbol "GetPlayerFaction"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4853) : error 017: undefined symbol "RemoveBlitzer"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4868) : error 017: undefined symbol "OnPlayerCarUpdate"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4885) : error 017: undefined symbol "ABroadCast"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4895) : error 017: undefined symbol "ABroadCast"
    C:\Dokumente und Einstellungen\Administrator\Desktop\Scripting\German Vision\gamemodes\NSR.pwn(4924) : error 017: undefined symbol "PlayerUpdate"


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




    - Bitten um hilfe :O

  • 1. new zeilen=Anzahl der Scriptzeilen/10;
    2. Du schreibst nach den ersten "zeilen":
    #error test
    3/4. Wenn weiterhin die Compilerwarnungen (Klammerfehler) kommen, setzte "#error test" "weiter nach oben", damit du dich der Fehlerquelle annähern kannst.
    3/4. Wenn der Fehler "userdefined error" oder etwas in die Richtung erscheint, setzt "#error test" "weiter nach unten", also 2xzeilen.


    Hoffentlich verstehst du, worauf ich hinaus möchte^^

    Berlin - Tel Aviv - Moskau

  • Danke erstmal .... Ich schaue mal ebend und versuche :)


    Hallo,
    wenn du dir weniger Arbeit machen willst, kannst du das ja mal ausprobieren:
    http://forum.sa-mp.com/showthread.php?t=171429
    Das ist ein sog. Klammerfehler-Detector.
    Kannst ja mal ausprobieren ob der funktioniert



    MFG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • Genau das mache ich grade schon :DD
    Jedoch lädt der schon seid 15min

    Vielleicht ist dein Script etwas länger, da dauert das vielleicht länger

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • Das kahm beim Scannen raus




    The Opening Bracket (5934) is either unnecessary or has no matching close




    if(IsAFightFaction(GetPlayerFaction(playerid))){
    new TempZone = GetPlayerFightzone(playerid);
    if(TempZone != -255){
    if(FightSystem[TempZone][fsFightTime] && FightSystem[TempZone][fsAttackFaction] != -255){
    if(FightSystem[TempZone][fsOwnerFaction] == GetPlayerFaction(playerid) || FightSystem[TempZone][fsAttackFaction] == GetPlayerFaction(playerid)){
    if(FightSystem[TempZone][fsCTF][0] == playerid){
    new fsName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,fsName,MAX_PLAYER_NAME);
    new fsText[128];
    format(fsText,sizeof(fsText),"{FF000F}..:: | GangFight | ::.. |{FFFFFF} %s hat es nicht geschafft die Flagge zu erobern.",fsName);
    for(new i;i<MAX_PLAYERS;i++){
    if(IsPlayerConnected(i)){
    if(GetPlayerFaction(i) == FightSystem[TempZone][fsOwnerFaction] || GetPlayerFaction(i) == FightSystem[TempZone][fsAttackFaction]){
    PlayerPlaySound(i,1058,0.0,0.0,0.0);
    SendClientMessage(i,FS_COL_YELLOW,fsText);
    }
    }
    }
    FightSystem[TempZone][fsCTF][0] = -255;
    FightSystem[TempZone][fsCTF][1] = 0;
    FightSystem[TempZone][fsCTF][2] = 0;
    }
    }
    }
    }
    }
    for(new fs;fs<sizeof(FightSystem);fs++){
    if(FightSystem[fs][fsFightTime]){
    if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction]||
    GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]) {
    PlayerInfo[playerid][pTot] = 0;
    }
    }
    }

  • if(IsAFightFaction(GetPlayerFaction(playerid)))
    {
    new TempZone = GetPlayerFightzone(playerid);
    if(TempZone != -255)
    {
    if(FightSystem[TempZone][fsFightTime] && FightSystem[TempZone][fsAttackFaction] != -255)
    {
    if(FightSystem[TempZone][fsOwnerFaction] == GetPlayerFaction(playerid)
    || FightSystem[TempZone][fsAttackFaction] ==
    GetPlayerFaction(playerid))
    {
    if(FightSystem[TempZone][fsCTF][0] == playerid)
    {
    new fsName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,fsName,MAX_PLAYER_NAME);
    new fsText[128];
    format(fsText,sizeof(fsText),"{FF000F}..:: | GangFight | ::.. |{FFFFFF}
    %s hat es nicht geschafft die Flagge zu erobern.",fsName);
    for(new i;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    if(GetPlayerFaction(i) == FightSystem[TempZone][fsOwnerFaction] ||
    GetPlayerFaction(i) == FightSystem[TempZone][fsAttackFaction])
    {
    PlayerPlaySound(i,1058,0.0,0.0,0.0);
    SendClientMessage(i,FS_COL_YELLOW,fsText);
    }
    }
    }
    FightSystem[TempZone][fsCTF][0] = -255;
    FightSystem[TempZone][fsCTF][1] = 0;
    FightSystem[TempZone][fsCTF][2] = 0;
    }
    }
    }
    }
    }
    for(new fs;fs<sizeof(FightSystem);fs++){
    if(FightSystem[fs][fsFightTime]){
    if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction]||
    GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]) {
    PlayerInfo[playerid][pTot] = 0;
    }
    }
    }


    ich habe mal netterweise eingerückt und wie du siehst sind da zuviele klammern die zu gehen


    mfg
    GeForce

  • Danke;)
    Und das lösen die Errors aus?