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
  • Hey wollte ma fargen ob das ein Klammerfehler sein könnte ? Hatte 26 error und da war ein klammerfehler aber hier weiss ich echt nicht weiter


    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(518) : error 017: undefined symbol "ReadName"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(520) : error 017: undefined symbol "ServerLog"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(541) : error 017: undefined symbol "ReadName"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(561) : error 017: undefined symbol "ReadName"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(565) : warning 217: loose indentation
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(565) : error 029: invalid expression, assumed zero
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(571) : error 017: undefined symbol "ReadName"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(573) : error 017: undefined symbol "mat"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(573) : error 017: undefined symbol "mat"
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(573) : error 029: invalid expression, assumed zero
    C:\Users\NoRain\Desktop\Test\gamemodes\WorldOfRedApple.pwn(573) : fatal error 107: too many error messages on one line


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



    10 Errors.

  • Ja,sry aber finde den fehler im errorbereich nicht ! Kenen die Bsaics aber hatte das noch nie sone fehler !




    public OnPlayerConnect(playerid)
    {
    SetPlayerColor(playerid, COLOR_GREY);
    if(IsPlayerNPC(playerid))
    {
    gPlayerAccount[playerid] = 1;
    gPlayerLogged[playerid] = 1;


    return 1;
    }


    else
    {
    SetPlayerCameraPos(playerid, -2668.5005, 1420.0167, 912.4063);
    SetPlayerCameraLookAt(playerid, -2666.1284, 1423.0178, 912.4063);
    new string[256]; format(string, sizeof(string), "|- %s betretet den Server -|",ReadName(playerid));
    SendClientMessageToAll(COLOR_GREY, string);
    ServerLog(string);
    PlayerInfo[playerid][pKills] = 0; PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pCash] = 0; PlayerInfo[playerid][pBank] = 0;
    PlayerInfo[playerid][pTeam] = 0; PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0; PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pSupporter] = 0;
    PlayerInfo[playerid][pSkin] = 0; PlayerInfo[playerid][pFSkin] = 0;
    PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pKnastzeit] = 0;
    PlayerInfo[playerid][pKnast] = 0; PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJPoints] = 0; PlayerInfo[playerid][pWanteds] = 0;
    PlayerInfo[playerid][pDrogen] = 0; PlayerInfo[playerid][pMaterials] = 0;
    PlayerInfo[playerid][pNummer] = 0; PlayerInfo[playerid][pBuch] = 0;
    PlayerInfo[playerid][pAutoLiz] = 0; PlayerInfo[playerid][pBikeLiz] = 0;
    PlayerInfo[playerid][pFlugLiz] = 0; PlayerInfo[playerid][pWaffLiz] = 0;
    PlayerInfo[playerid][pAnglLiz] = 0; PlayerInfo[playerid][pBootLiz] = 0;
    PlayerInfo[playerid][pLKWLiz] = 0; PlayerInfo[playerid][pKopfgeld] = 0;
    PlayerInfo[playerid][pOpfer] = 999; PlayerInfo[playerid][pAuftrag] = 0;
    PlayerInfo[playerid][pMacher] = 999; PlayerInfo[playerid][pKey] = 1;
    PlayerInfo[playerid][pCarID] = -1; Woof[playerid] = -1; WooX[playerid] = -1;
    SetPlayerCameraPos(playerid, -2668.5005, 1420.0167, 912.4063);
    SetPlayerCameraLookAt(playerid, -2666.1284, 1423.0178, 912.4063);
    new mat[256]; format(mat, sizeof(mat),"/User/%s.cer",ReadName(playerid));
    if(!fexist(mat))



    {
    gPlayerAccount[playerid] = 0;
    GivePlayerMoney(playerid, (START_CASH/2));
    PlayerInfo[playerid][pBank] = START_BANK;
    PlayerInfo[playerid][pTeam] = 1;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pSupporter] = 0;
    PlayerInfo[playerid][pSkin] = 0;
    PlayerInfo[playerid][pFSkin] = 0;
    PlayerInfo[playerid][pLevel] = 1;
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_YELLOW2, "*::* Du hast noch keinen Account. Bitte fülle folgendes aus: *::*");
    new s[128];
    format(s,sizeof(s),"Wilkommen %s!\n\nTippe hier dein Passwort rein:",ReadName(playerid));
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Register Fenster",s,"Registrieren","Abbrechen");
    }
    }
    else
    {
    gPlayerAccount[playerid] = 1;
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_YELLOW2, "*::* Du hast bereits einen Account. Bitte tippe dein Passwort rein: *::*");
    new s[128];
    format(s,sizeof(s),"Wilkommen %s!\n\nTippe hier dein Passwort rein:",ReadName(playerid));
    ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Login Fenster",s,"Einloggen","Abbrechen");
    format(mat, sizeof(mat),"/Autos/%s.carinfo",ReadName(playerid));
    if(dini_Exists(mat))
    {
    LoadPlayerVehicle(playerid);
    }
    }


    SetPlayerMapIcon(playerid, 0, gPickKoords[10][0], gPickKoords[10][1], gPickKoords[10][2], 10, 0);
    }


    public OnPlayerRequestSpawn(playerid)
    {
    if(gPlayerLogged[playerid] == 0)
    {
    return 0;
    }
    GangZoneShowForPlayer(playerid, Rathaus, 0xFFFFFF96);
    return 1;
    }


    public Updating()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    PlayerInfo[i][pPoint] += 1;
    if(PlayerInfo[i][pPoint] == 60)
    {
    PlayerInfo[i][pExp] += 1;
    PlayerInfo[i][pPoint] = 0;
    PayTime[i] = 1;
    PayDay();
    if(PlayerInfo[i][pWanteds] >= 1)
    {
    PlayerInfo[i][pWanteds] -= 1;
    if(PlayerInfo[i][pWanteds] > 0)
    {
    new str[256];
    format(str, sizeof(str), "Dein WantedLevel: %d",PlayerInfo[i][pWanteds]);
    SendClientMessage(i, COLOR_RED, str);
    }
    }
    }
    OnPlayerUpdate(i);
    }
    return 1;
    }