Problem mit Fahrschulsystem

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
  • Abend Brotfische,


    Wenn ich das erste mal "/startfahrtraining" eintippe, wird mir ein Checkpoint erstellt, fahre ich jetzt durch den Checkpoint kommt "Du hast bestanden!". Tippe ich dann nochmal "/startfahrtraining" wird wieder der erste Checkpoint erstellt, doch nichts passiert dannach, nicht mal "Du hast bestanden!".


    Spoiler anzeigen
     new FS_CP[MAX_PLAYERS][30];

    Spoiler anzeigen
    ocmd:startfahrtraining(playerid,params[])
    {
    if(FS_Theoriepruefung[playerid]!=1)return SendClientMessage(playerid,C_Error,"Du hast die Theorieprüfung noch nicht gemacht.");
    FS_Car[playerid] = CreateVehicle(560,1106.9458,1358.4070,10.8203,270.1017,1,1,-1);
    PutPlayerInVehicle(playerid,FS_Car[playerid],0);print("Spieler wurde ins Fahrzeug gesetzt.");
    FS_CP[playerid][0] = SetPlayerCheckpoint(playerid,1117.4460,1358.2892,10.8203,4.0);
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerEnterCheckpoint(playerid)
    {
    DisablePlayerCheckpoint(playerid);
    if(FS_CP[playerid][0])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][1] = SetPlayerCheckpoint(playerid,1117.4460,1358.2892,10.8203,4.0);
    }
    if(FS_CP[playerid][1])
    {
    DisablePlayerCheckpoint(playerid);
    SetTimerEx("Freezzer",30000,0,"i",playerid);
    SendClientMessage(playerid,C_Weiß,"________|Fahrschule-Aufgabe 1|________");
    SendClientMessage(playerid,C_Weiß,"Fahre nun über den Hügel.");
    SendClientMessage(playerid,C_Weiß,"Tipp: Bei diesem Hügel sollte man mit gefühl fahren.");
    SendClientMessage(playerid,C_Weiß,"________________________________");
    FS_CP[playerid][2] = SetPlayerCheckpoint(playerid,1117.7679,1318.7402,10.8203,4.0);
    }
    if(FS_CP[playerid][2])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][3] = SetPlayerCheckpoint(playerid,1117.0444,1304.6306,12.2415,4.0);
    }
    if(FS_CP[playerid][3])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][4] = SetPlayerCheckpoint(playerid,1116.6151,1279.5021,10.8203,4.0);
    }
    if(FS_CP[playerid][4])
    {
    DisablePlayerCheckpoint(playerid);
    SetTimerEx("Freezzer",30000,0,"i",playerid);
    SendClientMessage(playerid,C_Weiß,"________|Fahrschule-Aufgabe 2|________");
    SendClientMessage(playerid,C_Weiß,"Parke das Fahrzeug bitte in die Parklücke rechts ein,");
    SendClientMessage(playerid,C_Weiß,"und und warte 6 Sekunden in der Parklücke.");
    SendClientMessage(playerid,C_Weiß,"________________________________");
    FS_CP[playerid][5] = SetPlayerCheckpoint(playerid,1116.4014,1256.5581,10.8203,4.0);
    }
    if(FS_CP[playerid][5])
    {
    DisablePlayerCheckpoint(playerid);
    //SetTimerEx(autoparken...inparkluecke);
    FS_CP[playerid][6] = SetPlayerCheckpoint(playerid,1107.6550,1252.1938,10.8203,4.0);
    }
    if(FS_CP[playerid][6])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][7] = SetPlayerCheckpoint(playerid,1117.0311,1255.4878,10.8203,4.0);
    }
    if(FS_CP[playerid][7])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][8] = SetPlayerCheckpoint(playerid,1116.8462,1211.8228,10.8203,4.0);
    }
    if(FS_CP[playerid][8])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][9] = SetPlayerCheckpoint(playerid,1134.4805,1210.7377,10.8203,4.0);
    }
    if(FS_CP[playerid][9])
    {
    DisablePlayerCheckpoint(playerid);
    SetTimerEx("Freezzer",30000,0,"i",playerid);
    SendClientMessage(playerid,C_Weiß,"________|Fahrschule-Aufgabe 3|________");
    SendClientMessage(playerid,C_Weiß,"Fahre das Fahrzeug sicher um die Hütchen, und");
    SendClientMessage(playerid,C_Weiß,"versuche keine Pylone umzufahren.");
    SendClientMessage(playerid,C_Weiß,"Jede Pylone gibt ein Strafpunkt!");
    SendClientMessage(playerid,C_Weiß,"________________________________");
    FS_CP[playerid][10] = SetPlayerCheckpoint(playerid,1136.5519,1222.2882,10.8203,4.0);
    }
    if(FS_CP[playerid][10])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][11] = SetPlayerCheckpoint(playerid,1139.3070,1228.2190,10.8203,4.0);
    }
    if(FS_CP[playerid][11])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][12] = SetPlayerCheckpoint(playerid,1134.6659,1236.4536,10.8203,4.0);
    }
    if(FS_CP[playerid][12])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][13] = SetPlayerCheckpoint(playerid,1139.9512,1244.5886,10.8203,4.0);
    }
    if(FS_CP[playerid][13])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][14] = SetPlayerCheckpoint(playerid,1134.8762,1256.6556,10.8203,4.0);
    }
    if(FS_CP[playerid][14])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][15] = SetPlayerCheckpoint(playerid,1140.0222,1266.8230,10.8203,4.0);
    }
    if(FS_CP[playerid][15])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][16] = SetPlayerCheckpoint(playerid,1138.2894,1284.5511,10.8203,4.0);
    }
    if(FS_CP[playerid][16])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][17] = SetPlayerCheckpoint(playerid,1142.7903,1299.3912,10.8203,4.0);
    }
    if(FS_CP[playerid][17])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][18] = SetPlayerCheckpoint(playerid,1136.8990,1309.6184,10.8203,4.0);
    }
    if(FS_CP[playerid][18])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][19] = SetPlayerCheckpoint(playerid,1142.2108,1319.1759,10.8203,4.0);
    }
    if(FS_CP[playerid][19])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][20] = SetPlayerCheckpoint(playerid,1138.5601,1334.2822,10.8203,4.0);
    }
    if(FS_CP[playerid][20])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][21] = SetPlayerCheckpoint(playerid,1165.0118,1337.6359,10.8125,4.0);
    }
    if(FS_CP[playerid][21])
    {
    DisablePlayerCheckpoint(playerid);
    SetTimerEx("Freezzer",30000,0,"i",playerid);
    SendClientMessage(playerid,C_Weiß,"________|Fahrschule-Aufgabe 4|________");
    SendClientMessage(playerid,C_Weiß,"Parke das Fahrzeug bitte rückwärts in die Parklücke ein.");
    SendClientMessage(playerid,C_Weiß,"Werden die anderen parkenden Fahrzeuge berührt,");
    SendClientMessage(playerid,C_Weiß,"bekommst du einen Fehlerpunkt.");
    SendClientMessage(playerid,C_Weiß,"________________________________");
    FS_CP[playerid][22] = SetPlayerCheckpoint(playerid,1166.1016,1317.9928,10.8203,4.0);
    }
    if(FS_CP[playerid][22])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][23] = SetPlayerCheckpoint(playerid,1161.3948,1309.9921,10.8203,4.0);
    }
    if(FS_CP[playerid][23])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][24] = SetPlayerCheckpoint(playerid,1167.6304,1298.8854,10.8203,4.0);
    }
    if(FS_CP[playerid][24])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][25] = SetPlayerCheckpoint(playerid,1160.1851,1308.4519,10.8203,4.0);
    }
    if(FS_CP[playerid][25])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][26] = SetPlayerCheckpoint(playerid,1170.0674,1308.5022,10.8203,4.0);
    }
    if(FS_CP[playerid][26])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][27] = SetPlayerCheckpoint(playerid,1168.0464,1329.9828,10.8125,4.0);
    }
    if(FS_CP[playerid][27])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][28] = SetPlayerCheckpoint(playerid,1155.5074,1337.4796,10.8203,4.0);
    }
    if(FS_CP[playerid][28])
    {
    DisablePlayerCheckpoint(playerid);
    FS_CP[playerid][29] = SetPlayerCheckpoint(playerid,1144.2487,1351.3020,10.8203,4.0);
    }
    if(FS_CP[playerid][29])
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid,C_Blau,"Du hast bestanden!");
    }
    // ....


    Ich hoffe ihr könnt mir helfen :)


    MfG :thumbup:


    .


    Mit freundlichen Grüßen
    German_ScripterHD