Nach 2ten Checkpoint durchlaufen zeigt es keinen mehr an

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
  • Hallo nach dem 2ten Checkpoint reinlaufen gehen die ganzen Checkpoints weg Code:



    if(IsPlayerInRangeOfPoint(playerid,5.0,1479.7335,-1743.7852,13.5469))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Stadthalle ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Dies ist die Stadthalle von unserem Server,");
    SendClientMessage(playerid,COLOR_WHITE,"dort kannst du dir einen Personalausweiß holen.");
    SetPlayerCheckpoint(playerid,1536.3737,-1674.7948,13.3828,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1536.3737,-1674.7948,13.3828))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ San Andreas Police Department ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Dies ist das SAPD von Los Santos, sie Jagen Verbrecher solltest du mal in eine");
    SendClientMessage(playerid,COLOR_WHITE,"Schlägerrei etc. gelangen, kannst du sie mit /call - 911 anrufen.");
    SetPlayerCheckpoint(playerid,1671.3737,-1312.7455,14.2546,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1671.3737,-1312.7455,14.2546))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ San News ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Hier ist die Base der San News, dort kannst du ab Level 3");
    SendClientMessage(playerid,COLOR_WHITE,"Werbung etc. schreiben.");
    SetPlayerCheckpoint(playerid,1460.5978,-1030.7332,23.6563,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1460.5978,-1030.7332,23.6563))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Bank of San Andreas ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Hier ist die Bank of San Andreas,");
    SendClientMessage(playerid,COLOR_WHITE,"dort kannst du Überweißungen, Auszahlungen, etc. erledigen.");
    SetPlayerCheckpoint(playerid,1315.1080,-909.0380,38.3190,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1315.1080,-909.0380,38.3190))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ 24/7 Shops ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Hier siehst du einen unserer 24/7 Shops,");
    SendClientMessage(playerid,COLOR_WHITE,"hier kannst du ein Telefonbuch usw. kaufen.");
    SetPlayerCheckpoint(playerid,1220.8473,-929.0958,42.6084,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1220.8473,-929.0958,42.6084))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Burger Shot ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist der Burger Shot,");
    SendClientMessage(playerid,COLOR_WHITE,"hier kannst du essen kaufen und mit Freunden abhängen");
    SetPlayerCheckpoint(playerid,987.1797,-938.8657,42.0129,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,987.1797,-938.8657,42.0129))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Tankstellen ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist eine Tankstelle in San Andreas,");
    SendClientMessage(playerid,COLOR_WHITE,"Schlägerrei etc. gelangen, kannst du sie mit /call - 911 anrufen.");
    SetPlayerCheckpoint(playerid,947.0963,-1103.5983,24.2202,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,947.0963,-1103.5983,24.2202))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Friedhof ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist der Friedhof von Los Santos,");
    SendClientMessage(playerid,COLOR_WHITE,"hier Spawnst du nach dem Tot.");
    SetPlayerCheckpoint(playerid,777.1379,-1334.3827,13.5407,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,777.1379,-1334.3827,13.5407))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Autohäuser ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Dies ist eines unserer Autohäuser auf den Server,");
    SendClientMessage(playerid,COLOR_WHITE,"wenn du genug Geld hast kannst du dir eins Kaufen.");
    SetPlayerCheckpoint(playerid,852.2355,-1417.3434,13.3362,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,852.2355,-1417.3434,13.3362))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Häuser ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist eines unsere Häuser auf den Server,");
    SendClientMessage(playerid,COLOR_WHITE,"wenn du genug Geld hast kannst du dir ein eigenes Kaufen.");
    SetPlayerCheckpoint(playerid,1182.4999,-1323.3533,13.5791,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1182.4999,-1323.3533,13.5791))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Krankenhaus ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Hier ist das Krankenhaus von Los Santos,");
    SendClientMessage(playerid,COLOR_WHITE,"hier kannst du deine Krankheiten heilen, und nach dem Friedhof Spawnst du hier.");
    SetPlayerCheckpoint(playerid,1364.2087,-1279.6251,13.5469,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1364.2087,-1279.6251,13.5469))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Ammunation ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist der Ammunation in Los Santos,");
    SendClientMessage(playerid,COLOR_WHITE,"dort kannst du dir Waffen, etc. kaufen.");
    SetPlayerCheckpoint(playerid,1178.0957,-1705.1460,13.8386,5.0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,5.0,1178.0957,-1705.1460,13.8386))
    {
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2," ");
    SendClientMessage(playerid,COLOR_ORANGE2,"|______________________ Tutorial ende ______________________|");
    SendClientMessage(playerid,COLOR_WHITE,"Das ist schon das ende vom Tutorial.");
    SendClientMessage(playerid,COLOR_WHITE,"als Bonus erhälst du, 1.000$ und Level 2.");
    GivePlayerMoney(playerid, 1000);
    PlayerInfo[playerid][pLevel]+=1;
    DisablePlayerCheckpoint(playerid);
    }

    Was du heute kannst besorgen, das Verschiebe nicht auf Morgen.


  • Dir fehlt überall ein return 1;
    :)
    Sonst durchläuft es alle Checkpoints ^^

  • Deine Theorie stimmt nicht ganz.
    Pawno geht Schritt für Schritt vor:


    1. Abfrage
    2. Checkpoint wird gesetzt
    3. Variable wird gesetzt
    4. Wir abgefragt, ob er die Variable [...] hat.


    Da die vorher gesetzt wurde, geht das Script alle Checkpoints durch.
    Also denk bitte nach, Fire :)
    (Du gauner mit teuren Grafikkarten xD)


    /E: Probier es aus und siehe da: Es funktioniert.
    Habe es gerade extra nochmal eingebaut ^^