Fahrschul Checkpoint

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 Morgen Breadfish-Community,


    ich benötige Hilfe beim Checkpoint abfahren der Fahrschule.
    Wenn man die Theoretische Prüfung bestanden hat, soll man in das Fahrschul Sentinel Fahrzeug einsteigen
    und die Checkpoints abfahren.


    Der erste Checkpoint wird angezeigt, allerdings folgt nicht der 2. Checkpoint...
    Bei neulingen Funktioniert dies nicht, wenn ich mir die Scheine wegnehme und die Fahrschule neu mache funktioniert das bei mir einwandfrei.


    So ist mein System aufgebaut:



    new FahrschuleAutoCP2[MAX_PLAYERS];



    if(FahrschuleAutoCP2[playerid] == 2)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 3;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}1{E8FF60})");
    SetPlayerCheckpoint(playerid,2104.2891,-1909.7043,12.9446,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 3)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 4;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}2{E8FF60})");
    SetPlayerCheckpoint(playerid,2124.3369,-1935.9396,12.9542,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 4)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 5;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}3{E8FF60})");
    SetPlayerCheckpoint(playerid,2130.9231,-1906.5145,12.9559,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 5)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 6;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}4{E8FF60})");
    SetPlayerCheckpoint(playerid,2220.3499,-1897.3386,12.9635,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 6)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 7;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}5{E8FF60})");
    SetPlayerCheckpoint(playerid,2219.8032,-1736.7469,12.9634,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 7)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 8;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}6{E8FF60})");
    SetPlayerCheckpoint(playerid,2433.3071,-1641.2203,26.8774,3.0);
    }
    }
    else if(FahrschuleAutoCP2[playerid] == 8)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 405)
    {
    DisablePlayerCheckpoint(playerid);
    FahrschuleAutoCP2[playerid] = 9;
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, " ");
    SendClientMessage(playerid,COLOR_WHITE, "{E8FF60}Fahrschul Schritt ({FF0000}7{E8FF60})");
    SetPlayerCheckpoint(playerid,2432.7412,-1451.2766,23.3885,3.0);
    }
    }
    //etc...


    Folgende Nachricht und Checkpoint soll gesetzt werden nach der Theoretischen Prüfung:

    SetPlayerPos(playerid,2041.3254,-1914.1489,13.5759);
    SetCameraBehindPlayer(playerid);
    FahrschuleAutoCP2[playerid] = 2;
    SetPlayerCheckpoint(playerid,2074.5408,-1890.4082,13.0970,3.0);
    SendClientMessage(playerid,COLOR_WHITE,"Du hast nun die Theoretische Fahrprüfung {6CFF6A}erfolgreich{FFFFFF} bestanden!");
    SendClientMessage(playerid,COLOR_WHITE,"Steige nun in das Sentinel Fahrschulauto und fahre die Checkpoints ab.");
    SendClientMessage(playerid,COLOR_WHITE,"{FFE26A}Tipp{FFFFFF}: Denke an die StVO!");



    P.S.: Ich weiß das ich auch mit einem Enum arbeiten kann wegen den Checkpoints, allerdings möchte ich es erstmal das hier beheben um dann anschließend umschreiben zu können...


    Ich finde nicht den Fehler warum der 2. Checkpoint nicht angezeigt wird...


    Lg
    J0a9