Klammerfehler Error :'(

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
  • Also musste mal gucken wieviele klammern du auf machst und wieviele du zu machst...
    Auf den ersten blick find ich klammer zu für IsPlayerConnectet nicht...
    versuch doch einfach mal nach return noch eine zu zu machen oder 2 :P
    oder davor

  • ich hab es ca. 50 mal (ehrlich) versucht .. ich hab klammern dazugesetzt, hab gedacht ist n pawno fehler.. hab klammern weggemacht .. hab sogar isplayerconnected weggemacht usw usw ..
    hat nix was genützt

  • lol am ende fehlt ein } und vor fast jedem if noch ein } aber drüber

  • ich habs jetzt mal eben schnell gemacht. habs nich getestet. kann sein das noch was falsch is.


    public PayDay()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 19 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 19)
    {
    if(PlayerInfo[i][pRank] <= 1)
    {
    PlayerMoney[i] = PlayerMoney[i] +1000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 2)
    {
    PlayerMoney[i] = PlayerMoney[i] +1500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 3)
    {
    PlayerMoney[i] = PlayerMoney[i] +2000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 4)
    {
    PlayerMoney[i] = PlayerMoney[i] +2500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 5)
    {
    PlayerMoney[i] = PlayerMoney[i] +3000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 6)
    {
    PlayerMoney[i] = PlayerMoney[i] +3500;
    return 1;
    }
    }
    if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 12)
    {
    if(PlayerInfo[i][pRank] <= 1)
    {
    PlayerMoney[i] = PlayerMoney[i] +1500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 2)
    {
    PlayerMoney[i] = PlayerMoney[i] +2000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 3)
    {
    PlayerMoney[i] = PlayerMoney[i] +2500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 4)
    {
    PlayerMoney[i] = PlayerMoney[i] +3000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 5)
    {
    PlayerMoney[i] = PlayerMoney[i] +3500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 6)
    {
    PlayerMoney[i] = PlayerMoney[i] +4000;
    return 1;
    }
    }
    if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pMember] == 18 || PlayerInfo[i][pLeader] == 18 || PlayerInfo[i][pLeader] == 2)
    {
    if(PlayerInfo[i][pRank] <= 1)
    {
    PlayerMoney[i] = PlayerMoney[i] +2000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 2)
    {
    PlayerMoney[i] = PlayerMoney[i] +2500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 3)
    {
    PlayerMoney[i] = PlayerMoney[i] +3000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 4)
    {
    PlayerMoney[i] = PlayerMoney[i] +3500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 5)
    {
    PlayerMoney[i] = PlayerMoney[i] +4000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 6)
    {
    PlayerMoney[i] = PlayerMoney[i] +4500;
    return 1;
    }
    }
    if(IsaMember(i))
    {
    if(PlayerInfo[i][pRank] <= 1)
    {
    PlayerMoney[i] = PlayerMoney[i] +2000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 2)
    {
    PlayerMoney[i] = PlayerMoney[i] +2500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 3)
    {
    PlayerMoney[i] = PlayerMoney[i] +3000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 4)
    {
    PlayerMoney[i] = PlayerMoney[i] +3500;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 5)
    {
    PlayerMoney[i] = PlayerMoney[i] +4000;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 6)
    {
    PlayerMoney[i] = PlayerMoney[i] +4500;
    return 1;
    }
    if(PlayerInfo[i][pLeader] == 7)
    {
    PlayerMoney[i] = PlayerMoney[i] +8000;
    return 1;
    }
    }
    if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10 || PlayerInfo[i][pLeader] == 9 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
    {
    if(PlayerInfo[i][pRank] <= 1)
    {
    PlayerMoney[i] = PlayerMoney[i] +0;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 2)
    {
    PlayerMoney[i] = PlayerMoney[i] +1200;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 3)
    {
    PlayerMoney[i] = PlayerMoney[i] +1400;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 4)
    {
    PlayerMoney[i] = PlayerMoney[i] +1600;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 5)
    {
    PlayerMoney[i] = PlayerMoney[i] +1800;
    return 1;
    }
    if(PlayerInfo[i][pRank] == 6)
    {
    PlayerMoney[i] = PlayerMoney[i] +2000;
    return 1;
    }
    }
    }
    return 1;
    }
    }