SetTimer-Programm problem

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
  • Habe diesen Code hier, und das Problem, dass er ab einer Stelle einfach den Code nicht ausführt (Stelle ist markiert):


    forward Playerwait();
    public Playerwait()
    {
    new nummern[14];
    new zaehler = 0;
    new hilfe = 0;
    new hilfe2 = 0;
    new RaceCar;

    TextDrawHideForAll(RaceText1);
    TextDrawHideForAll(RaceText2);
    TextDrawHideForAll(RaceText3);
    TextDrawHideForAll(RaceText4);

    if(startedrace == 1)
    {
    startedrace = 2;
    }
    else if(startedcrash == 1)
    {
    startedcrash = 2;
    }
    else
    {
    starteddirtbike = 2;
    }

    for(new i=0;i<14;i++)
    {
    nummern[i] = 120;
    }
    for(new i=0;i<=MAX_PLAYERS;i++)
    {
    if(PlayerInf[i][race] == 1)
    {
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw0]);
    TextDrawShowForPlayer(i, Textdraw1);
    TextDrawShowForPlayer(i, Textdraw2);
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw3]);
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw4]);
    TextDrawShowForPlayer(i, Textdraw5);

    PlayerInf[i][startnummer] = random(100);
    nummern[zaehler] = PlayerInf[i][startnummer];
    zaehler++;
    }
    else if(PlayerInf[i][derby] == 1)
    {
    }
    else if(PlayerInf[i][dirtbike] == 1)
    {
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw0]);
    TextDrawShowForPlayer(i, Textdraw1);
    TextDrawShowForPlayer(i, Textdraw2);
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw3]);
    TextDrawShowForPlayer(i, PlayerInf[i][Textdraw4]);
    TextDrawShowForPlayer(i, Textdraw5);

    PlayerInf[i][startnummer] = random(100);
    nummern[zaehler] = PlayerInf[i][startnummer];
    zaehler++;
    }
    }
    // ab da beendet er den Textcode also weiter macht er nicht mehr
    for(new a=0;a<14;a++)
    {
    if(nummern[a] != 120)
    {
    while(hilfe < 14)
    {
    if(nummern[a] > nummern[hilfe] && nummern[hilfe] != 120)
    {
    nummern[hilfe] = hilfe2;
    nummern[hilfe] = nummern[a];
    nummern[a] = hilfe2;
    }
    else
    {
    hilfe++;
    }
    }
    }
    }
    for(new i=0;i<=MAX_PLAYERS;i++)
    {
    if(PlayerInf[i][race] == 1)
    {
    for(new a=0;a<10;a++)
    {
    if(PlayerInf[i][startnummer] == nummern[a])
    {
    if(a == 0)
    {
    RaceCar = AddStaticVehicle(carrace,-1394.2693,-182.7173,1051.3265,353.0661,54,36); // trackpos1
    }
    else if(a == 1)
    {
    RaceCar = AddStaticVehicle(carrace,-1398.5663,-185.0146,1051.3585,353.2114,92,101);
    }
    else if(a == 2)
    {
    RaceCar = AddStaticVehicle(carrace,-1395.3734,-192.5294,1051.3605,353.4258,54,36);
    }
    else if(a == 3)
    {
    RaceCar = AddStaticVehicle(carrace,-1400.4469,-195.3882,1051.3518,352.4327,92,101);
    }
    else if(a == 4)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.3112,-202.7859,1051.2581,356.6725,54,36);
    }
    else if(a == 5)
    {
    RaceCar = AddStaticVehicle(carrace,-1401.3124,-206.7943,1051.1923,353.3080,92,101);
    }
    else if(a == 6)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.7806,-211.5063,1051.1116,357.5726,54,36);
    }
    else if(a == 7)
    {
    RaceCar = AddStaticVehicle(carrace,-1401.9963,-215.3054,1051.0430,354.6159,92,101);
    }
    else if(a == 8)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.7780,-221.0064,1050.9843,358.0415,54,36);
    }
    else if(a == 9)
    {
    RaceCar = AddStaticVehicle(carrace,-1402.0282,-225.4607,1050.9449,355.6869,92,101);
    }


    LinkVehicleToInterior(RaceCar,7);
    SetPlayerInterior(i,7);
    PutPlayerInVehicle(i,RaceCar,0);
    TogglePlayerControllable(i,0);
    }
    }
    }
    else if(PlayerInf[i][derby] == 1)
    {
    }
    else if(PlayerInf[i][dirtbike] == 1)
    {
    for(new a=0;a<10;a++)
    {
    if(PlayerInf[i][startnummer] == nummern[a])
    {
    if(a == 0)
    {
    RaceCar = AddStaticVehicle(carrace,-1394.2693,-182.7173,1051.3265,353.0661,54,36); // trackpos1
    }
    else if(a == 1)
    {
    RaceCar = AddStaticVehicle(carrace,-1398.5663,-185.0146,1051.3585,353.2114,92,101);
    }
    else if(a == 2)
    {
    RaceCar = AddStaticVehicle(carrace,-1395.3734,-192.5294,1051.3605,353.4258,54,36);
    }
    else if(a == 3)
    {
    RaceCar = AddStaticVehicle(carrace,-1400.4469,-195.3882,1051.3518,352.4327,92,101);
    }
    else if(a == 4)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.3112,-202.7859,1051.2581,356.6725,54,36);
    }
    else if(a == 5)
    {
    RaceCar = AddStaticVehicle(carrace,-1401.3124,-206.7943,1051.1923,353.3080,92,101);
    }
    else if(a == 6)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.7806,-211.5063,1051.1116,357.5726,54,36);
    }
    else if(a == 7)
    {
    RaceCar = AddStaticVehicle(carrace,-1401.9963,-215.3054,1051.0430,354.6159,92,101);
    }
    else if(a == 8)
    {
    RaceCar = AddStaticVehicle(carrace,-1396.7780,-221.0064,1050.9843,358.0415,54,36);
    }
    else if(a == 9)
    {
    RaceCar = AddStaticVehicle(carrace,-1402.0282,-225.4607,1050.9449,355.6869,92,101);
    }
    LinkVehicleToInterior(RaceCar,7);
    SetPlayerInterior(i,7);
    PutPlayerInVehicle(i,RaceCar,0);
    TogglePlayerControllable(i,0);
    }
    }
    }
    }
    }


    Ich bitte um Hilfe ;)

    Einmal editiert, zuletzt von xXOliverXx ()