Fehler in einer Zeile die es nicht gibt

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
  • Überschrift sagt alles. Habe ein Error in Zeile 348.. aber die gibt es nicht!


    C:\Users\Heck\Desktop\GTA San Andreas\gamemodes\yannicksgamemode.pwn(348) : error 030: compound statement not closed at the end of file (started at line 290)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Das ist der letzte Teil bis jz.


    SendClientMessage(playerid, 0x000000FF, "Panzer Team 2 ausgewählt");
    return 1;
    }


    Was ist falsch??

  • // PANZER DM
    if (strcmp("/Panzert1", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1431.0935,1282.6476,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 1 ausgewählt");
    return 1;
    }


    if (strcmp("/Panzert2", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1433.8064,1708.7782,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 2 ausgewählt");
    return 1;
    }

  • {
    if (strcmp("/bombarena", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1262.5938,-2018.4518,59.345);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Bombarena");
    GivePlayerWeapon(playerid, 16, 100);
    return 1;
    }
    if (strcmp(cmdtext, "/teleports", true) == 0)
    {
    SendClientMessage(playerid, 0x339966FF, "/bombarena, /sniper, /massaker, /noobspawn, /mg");
    return 1;
    }


    if (strcmp("/sniper", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1057.3188,-325.9607,73.9851);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Sniperarena");
    GivePlayerWeapon(playerid, 34, 1500);
    return 1;
    }


    if (strcmp("/noobspawn", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1469.3306,-1616.5641,14.0393);
    SendClientMessage(playerid, 0x339933FF, "Du bist wieder am Noobspawn");
    return 1;
    }


    if (strcmp("/Massaker", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1229.4170,-918.0164,42.8991);
    SendClientMessage(playerid, 0x339933FF, "Du bist beim Kettensägenmasakker");
    GivePlayerWeapon(playerid, 9, 1);
    return 1;
    }


    if (strcmp("/mg", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, -365.5829,-1438.6454,25.7266);
    SendClientMessage(playerid, 0x339933FF, "Du bist in der Minigunarena");
    GivePlayerWeapon(playerid, 38, 2000);
    return 1;
    }
    // PANZER DM
    if (strcmp("/Panzert1", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1431.0935,1282.6476,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 1 ausgewählt");
    return 1;
    }


    if (strcmp("/Panzert2", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1433.8064,1708.7782,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 2 ausgewählt");
    return 1;
    }

  • //hier dürft noch "public OnPlayerCommandText(playerid,cmdtext[])" stehen
    {
    if (strcmp("/bombarena", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1262.5938,-2018.4518,59.345);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Bombarena");
    GivePlayerWeapon(playerid, 16, 100);
    return 1;
    }
    if (strcmp(cmdtext, "/teleports", true) == 0)
    {
    SendClientMessage(playerid, 0x339966FF, "/bombarena, /sniper, /massaker, /noobspawn, /mg");
    return 1;
    }


    if (strcmp("/sniper", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1057.3188,-325.9607,73.9851);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Sniperarena");
    GivePlayerWeapon(playerid, 34, 1500);
    return 1;
    }


    if (strcmp("/noobspawn", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1469.3306,-1616.5641,14.0393);
    SendClientMessage(playerid, 0x339933FF, "Du bist wieder am Noobspawn");
    return 1;
    }


    if (strcmp("/Massaker", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1229.4170,-918.0164,42.8991);
    SendClientMessage(playerid, 0x339933FF, "Du bist beim Kettensägenmasakker");
    GivePlayerWeapon(playerid, 9, 1);
    return 1;
    }


    if (strcmp("/mg", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, -365.5829,-1438.6454,25.7266);
    SendClientMessage(playerid, 0x339933FF, "Du bist in der Minigunarena");
    GivePlayerWeapon(playerid, 38, 2000);
    return 1;
    }
    // PANZER DM
    if (strcmp("/Panzert1", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1431.0935,1282.6476,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 1 ausgewählt");
    return 1;
    }


    if (strcmp("/Panzert2", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1433.8064,1708.7782,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 2 ausgewählt");
    return 1;
    }
    return 0;
    }

  • hast du es jetzt so?
    public OnPlayerCommandText(playerid,cmdtext[])
    {
    ....//falls hier weiter cmds stehen sollten
    if (strcmp("/bombarena", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1262.5938,-2018.4518,59.345);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Bombarena");
    GivePlayerWeapon(playerid, 16, 100);
    return 1;
    }
    if (strcmp(cmdtext, "/teleports", true) == 0)
    {
    SendClientMessage(playerid, 0x339966FF, "/bombarena, /sniper, /massaker, /noobspawn, /mg");
    return 1;
    }


    if (strcmp("/sniper", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1057.3188,-325.9607,73.9851);
    SendClientMessage(playerid, 0x339933FF, "Du bist nun in der Sniperarena");
    GivePlayerWeapon(playerid, 34, 1500);
    return 1;
    }


    if (strcmp("/noobspawn", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1469.3306,-1616.5641,14.0393);
    SendClientMessage(playerid, 0x339933FF, "Du bist wieder am Noobspawn");
    return 1;
    }


    if (strcmp("/Massaker", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1229.4170,-918.0164,42.8991);
    SendClientMessage(playerid, 0x339933FF, "Du bist beim Kettensägenmasakker");
    GivePlayerWeapon(playerid, 9, 1);
    return 1;
    }


    if (strcmp("/mg", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, -365.5829,-1438.6454,25.7266);
    SendClientMessage(playerid, 0x339933FF, "Du bist in der Minigunarena");
    GivePlayerWeapon(playerid, 38, 2000);
    return 1;
    }
    // PANZER DM
    if (strcmp("/Panzert1", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1431.0935,1282.6476,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 1 ausgewählt");
    return 1;
    }


    if (strcmp("/Panzert2", cmdtext, true, 10) ==0)
    {
    SetPlayerPos(playerid, 1433.8064,1708.7782,10.8203);
    SendClientMessage(playerid, 0x000000FF, "Panzer Team 2 ausgewählt");
    return 1;
    }
    return 0;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen