Job Hilfe

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
  • Ja Guten Tag ich habe mir das Tutorial von hier befolgt doch ich bekomme erros den alle meine stocks werden nun nicht mehr erkannt.


    public OnPlayerEnterCheckpoint(playerid)
    {
    {
    if(Muell[playerid] == 1)
    {
    SendClientMessage(playerid,WEIS,"CP1");
    Muell[playerid] = 2;
    SetPlayerCheckpoint(playerid,1700.8376,-1542.7803,13.3828,3.0);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1659.7245,-1543.1304,13.3828,3.0);
    {
    else if(Muell[playerid] == 2)
    }
    SendClientMessage(playerid,WEIS,"CP2");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1661.4900,-1481.8458,13.3828,3.0);
    Muell[playerid] = 3;
    {
    else if(Muell[playerid] == 3)
    }
    SendClientMessage(playerid,WEIS,"CP3");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1697.0780,-1509.5945,13.3828,3.0);
    Muell[playerid] = 0;
    }
    }
    return 1;
    }


    Klammerfehler ? Wenn ja wo ich hab totalen Blackout :S


    Ich nehme jede Helfende Antwort an ^^

  • public OnPlayerEnterCheckpoint(playerid)
    {
    {
    Was soll denn die zweite Klammer bringen? Weg damit.
    Die vorm return ebenso.

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."

  • public OnPlayerEnterCheckpoint(playerid)
    {
    {
    Was soll denn die zweite Klammer bringen? Weg damit.
    Die vorm return ebenso.

    Ich denke Hoffe du meinst es so.


    public OnPlayerEnterCheckpoint(playerid)
    {
    if(Muell[playerid] == 1)
    {
    SendClientMessage(playerid,WEIS,"CP1");
    Muell[playerid] = 2;
    SetPlayerCheckpoint(playerid,1700.8376,-1542.7803,13.3828,3.0);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1659.7245,-1543.1304,13.3828,3.0);
    {
    else if(Muell[playerid] == 2)
    }
    SendClientMessage(playerid,WEIS,"CP2");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1661.4900,-1481.8458,13.3828,3.0);
    Muell[playerid] = 3;
    {
    else if(Muell[playerid] == 3)
    }
    SendClientMessage(playerid,WEIS,"CP3");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1697.0780,-1509.5945,13.3828,3.0);
    Muell[playerid] = 0;
    }
    return 1;
    }


    Den ich habe die selben Fehler :S

  • {
    else if(Muell[playerid] == 2)
    }
    zu
    }
    else if(Muell[playerid] == 2)
    }

    Die Klammer muss ja zu gehen.

    Kalcor: "... it makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."

  • Okay danke erstmal dafür das meine Stocks wieder da sind :)
    Denoch habe ich 3 Errors und 1 Warning.


    public OnPlayerEnterCheckpoint(playerid)
    {
    if(Muell[playerid] == 1)
    {
    SendClientMessage(playerid,WEIS,"CP1");
    Muell[playerid] = 2;
    SetPlayerCheckpoint(playerid,1700.8376,-1542.7803,13.3828,3.0);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1659.7245,-1543.1304,13.3828,3.0);
    }
    else if(Muell[playerid] == 2)
    } //<---Fehler 1
    SendClientMessage(playerid,WEIS,"CP2"); //<---Fehler 2
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1661.4900,-1481.8458,13.3828,3.0);
    Muell[playerid] = 3;
    }
    else if(Muell[playerid] == 3) //<---Fehler 3
    }
    SendClientMessage(playerid,WEIS,"CP3");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1697.0780,-1509.5945,13.3828,3.0);
    Muell[playerid] = 0;
    }
    return 1; //<---Fehler 4
    }


    Fehlercodes:C:\Users\Penis\Documents\Pawn\gamemodes\TomatenGurke.pwn(248) : error 029: invalid expression, assumed zero
    C:\Users\Penis\Documents\Pawn\gamemodes\TomatenGurke.pwn(249) : warning 217: loose indentation
    C:\Users\Penis\Documents\Pawn\gamemodes\TomatenGurke.pwn(254) : error 010: invalid function or declaration
    C:\Users\Penis\Documents\Pawn\gamemodes\TomatenGurke.pwn(261) : error 010: invalid function or declaration

  • Meine Güte

    public OnPlayerEnterCheckpoint(playerid)
    {
    if(Muell[playerid] == 1)
    {
    SendClientMessage(playerid,WEIS,"CP1");
    Muell[playerid] = 2;
    SetPlayerCheckpoint(playerid,1700.8376,-1542.7803,13.3828,3.0);
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1659.7245,-1543.1304,13.3828,3.0);
    }
    else if(Muell[playerid] == 2)
    { //<---Fehler 1
    SendClientMessage(playerid,WEIS,"CP2"); //<---Fehler 2
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1661.4900,-1481.8458,13.3828,3.0);
    Muell[playerid] = 3;
    }
    else if(Muell[playerid] == 3) //<---Fehler 3
    {
    SendClientMessage(playerid,WEIS,"CP3");
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1697.0780,-1509.5945,13.3828,3.0);
    Muell[playerid] = 0;
    }
    return 1; //<---Fehler 4
    }