26 Errors / 13 Errors? 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
  • Guten tag liebe Breadfish user.
    ich habe einen klammerfehler .. ich weiss aber nicht wie ich ihn Beheben soll ...
    ich bekomme mal 13 Errors, mal 26 Errors.
    manchmal kommt dann ein Errorcode welcher so aussieht.




    public PreparePaintball(){ ForAllPlayers(i){ if(IsPlayerConnected(i)){ if(PlayerPaintballing[i] != 0){ ResetPlayerWeapon(i); SetPlayerVirtualWorld(i, 20); //SetPlayerWorldBounds(i, -537.907592, 2130.901123, -265.907623, 2330.901123); SendClientMessage(i, COLOR_YELLOW, " Das Paintballmatch beginnt in 20 Sekunden."); } } } SetProTimer("StartPaintball", 20000, 0); return 1;}
    public StartPaintball(){ PaintballRound = 1; StartingPaintballRound = 0; PaintballWinner = 999; PaintballWinnerKills = 0; ForAllPlayers(i){ if(IsPlayerConnected(i)){ if(PlayerPaintballing[i] != 0){ SetPlayerArmour(i, 0); ResetPlayerWeapon(i); GivePlayerWeapons(i, 29, 999); GivePlayerWeapons(i, 24, 999); SetPlayerVirtualWorld(i, 20); //SetPlayerWorldBounds(i, -537.907592, 2130.901123, -265.907623, 2330.901123); SendClientMessage(i, COLOR_YELLOW, "Das Paintballmatch wurde gestartet! Restzeit: 4 Minuten "); } } } SetProTimer("PaintballEnded", 240000, 0); return 1;}
    public PaintballEnded(){ new string[256]; new name[MAX_PLAYER_NAME]; ForAllPlayers(i){ if(IsPlayerConnected(i)){ if(PlayerPaintballing[i] != 0){ if(IsPlayerConnected(PaintballWinner)) { GetPlayerName(PaintballWinner, name, sizeof(name)); format(string,sizeof(string), "* %s gewann das Spiel mit %d Treffern *",name,PaintballWinnerKills); SendClientMessage(i, COLOR_PURPLE, string); } ResetPlayerWeapon(i); PlayerPaintballing[i] = 0; PlayerPaintballKills[i] = 0; GivePlayerWeapons(PaintballWinner, 5,1); SetPlayerHealth(i, PlayerInfo[i][pSHealth]); SetPlayerVirtualWorld(i, 0); SetPlayerInterior(i, 0); SetPlayerPos(i, SBizInfo[10][sbEntranceX],SBizInfo[10][sbEntranceY],SBizInfo[10][sbEntranceZ]); if(IsACop(i) && OnDuty[i] == 1) { GivePlayerWeapons(i, 24, 70); GivePlayerWeapons(i, 3, 0); GivePlayerWeapons(i, 29, 500); SetPlayerArmour(i, 100); SetPlayerHealth(i, 100); } //SetPlayerWorldBounds(i, 20000.0000,-20000.0000,20000.0000,-20000.0000); //Löscht das WorldBounds eines Spielers } } } AnnouncedPaintballRound = 0; PaintballRound = 0; return 1;}
    public PrepareKarting(){ ForAllPlayers(i) { if(IsPlayerConnected(i)) { if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0) { CP[i] = 9; SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0); SendClientMessage(i, COLOR_YELLOW, "Kartrennen startet in 20 Sekunden - Fahre zum Start !"); } } } SetProTimer("StartKarting", 20000, 0); return 1;}


    public StartKarting(){ KartingRound = 1; StartingKartRound = 0; EndingKartRound = 0; FirstKartWinner = 999; SecondKartWinner = 999; ThirdKartWinner = 999; ForAllPlayers(i) { if(IsPlayerConnected(i)) { if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0) { CP[i] = 10; SendClientMessage(i, COLOR_YELLOW, "Grünes Licht LOS !"); GameTextForPlayer(i,"~g~GO~r~!!~n~~g~GO~r~!!~n~~g~GO~r~!!", 2500, 3); SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0); } } } SetProTimer("KartingEnded", 240000, 0); return 1;}
    public KartingEnded(){ ForAllPlayers(i) { if(IsPlayerConnected(i)) { if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0) { CP[i] = 0; DisablePlayerCheckpoint(i); } } } AnnouncedKartRound = 0; KartingRound = 0; return 1;}
    public Encrypt(string[]){ for(new x=0; x < strlen(string); x++) { string[x] += (3^x) * (x % 15); if(string[x] > (0xff)) { string[x] -= 256; } } return 1;}
    stock right(source[], len){ new retval[MAX_STRING], srclen; srclen = strlen(source); strmid(retval, source, srclen - len, srclen, MAX_STRING); return retval;}
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ if(ispassenger) { if(Locked[vehicleid] == 1) { SendClientMessage(playerid,COLOR_GRAD2," Dieses Fahrzeug ist abgeschlossen."); ClearAnimations(playerid); return 1; } if(PlayerCuffed[playerid] != 0 && !IsACopCar(vehicleid)) { SendClientMessage(playerid,COLOR_GRAD2," Du bist Bewegungsunfähig."); ClearAnimations(playerid); return 1; } } return 1;}
    public IsAFahrschullehrer(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==11) { return 1; } if(leader==11) { return 1; } } return 0;}
    public IsAMedic(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 4) { return 1; } if(PlayerInfo[playerid][pLeader] == 4) { return 1; } } return 0;}
    public IsAnArmy(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==3) { return 1; } if(leader==3) { return 1; } } return 0;}
    public IsAGangMember(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member == 2 || member == 5 || member == 6 || member == 8 || member == 10 || member == 15 || member == 17 || member == 18 || member == 19 || member == 20 || member == 21 || member == 22 || member == 23 || member == 24 || member == 25 || member == 26) { return 1; } if(leader == 2 || leader == 5 || leader == 6 || leader == 8 || leader == 10 || leader == 15 || leader == 17 || leader == 18 || leader == 19 || leader == 20 || leader == 21 || leader == 22 || leader == 23 || leader == 24 || leader == 25 || leader == 26) { return 1; } } return 0;}
    public IsACop(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member == 1 || member == 7 || member == 14 || member == 16) { return 1; } if(leader == 1 || leader == 7 || leader == 14 || leader == 16) { return 1; } } return 0;}public IsAHitman(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member == 8) { return 1; } if(leader == 8) { return 1; } } return 0;}
    public IsAOrdnungsbeamter(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==13) { return 1; } if(leader==13) { return 1; } } return 0;}
    public IsABuergermeister(playerid){ if(IsPlayerConnected(playerid)) { new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==12) { return 1; } else if(leader==12) { return 1; } } return 0;}
    public IsAtClothShop(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047)) {//Binco & Suburban return 1; } else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047)) {//Zip & Victim return 1; } } return 0;}
    public IsAtTanke(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(5.0,playerid,1544.827514,-1609.888183,13.109910) || PlayerToPoint(5.0,playerid,123.1666,1902.9073,18.3313) || PlayerToPoint(5.0,playerid,849.39202880859, -1232.0441894531, 15.388903617859)) {//LSPD und Army Tanke und OAmt Tanke return 1; } if(PlayerToPoint(5.0,playerid,1149.9184570313, -1306.9725341797, 14.147253036499) || PlayerToPoint(5.0,playerid,2276.10, 2490.56, 3.80))//Medic-->LVPD { return 1; } } return 0;}
    public IsAtSaveBox(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(10.0,playerid,-2183.21, -224.83, 35.50) || PlayerToPoint(10.0,playerid,-91.55, -1575.84, 1.60) || PlayerToPoint(10.0,playerid,838.03, -1853.02, 7.40) || PlayerToPoint(10.0,playerid,2069.12, -1553.09, 12.40))//SF Alte-fahrschule-->Kamping Box--->Strand-Box---->Grove-Base-Box { return 1; } else if(PlayerToPoint(10.0,playerid,413.43, 2533.84, 15.50) || PlayerToPoint(10.0,playerid,2855.98, 945.83, 9.70))//LV Flughafen-->LV Bei Grove { return 1; } } return 0;}
    public IsAtFishPlace(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359)) {//Fishplace at the bigwheel return 1; } else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359)) {//Fishplace at the bigwheel return 1; } else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359)) {//Fishplace at the bigwheel return 1; } else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359)) {//Fishplace at the bigwheel return 1; } else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359)) {//Fishplace at the bigwheel return 1; } } return 0;}
    public IsAtCookPlace(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589)) {//Cluckin Bell return 1; } else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078)) {//Burgershot return 1; } else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922)) {//Well Stacked Pizza return 1; } } return 0;}
    public IsAtATM(playerid){ if(IsPlayerConnected(playerid)) { if(PlayerToPoint(5.0,playerid, 1202.86, -889.28, 42.79))//BSN { return 1; } if(PlayerToPoint(5.0,playerid, 2277.63, 2430.31, 10.45))//LVPD { return 1; } if(PlayerToPoint(5.0,playerid, 1736.53, 1852.39, 10.40))//LV Autohaus { return 1; } if(PlayerToPoint(5.0,playerid, 2122.71, 896.76, 10.80))//LV Ammu { return 1; } if(PlayerToPoint(5.0,playerid, 1504.7001953125, -1708.5302734375, 13.660969734192)) { return 1; } if(PlayerToPoint(5.0,playerid,-1337.68, 450.77, 6.82))//Fahrschule SF { return 1; } if(PlayerToPoint(5.0,playerid, 1086.89, -1803.67, 13.20)) { return 1; } if(PlayerToPoint(5.0,playerid, 2212.4794921875, 1838.7783203125, 10.437607765198)) { return 1; } if(PlayerToPoint(5.0,playerid, -2665.3916015625, 1.47265625, 5.745316028595)) { return 1; } if(PlayerToPoint(5.0,playerid, 771.40478515625, -1384.2039794922, 13.335314750671)) { return 1; } if(PlayerToPoint(5.0,playerid, -1648.9949951172, 1202.4716796875, 6.8625001907349)) { return 1; } if(PlayerToPoint(5.0,playerid, -1980.5931396484, 134.7060546875, 27.303802490234)) { return 1; } if(PlayerToPoint(5.0,playerid, 421.82397460938, 2534.1791992188, 16.159648895264)) { return 1; } if(PlayerToPoint(5.0,playerid, -2484.36328125, 2249.9228515625, 4.5955381393433)) { return 1; } if(PlayerToPoint(5.0,playerid, 651.58776855469, 1707.6109619141, 6.8039922714233)) { return 1; } }