Tutorial geht zu schnell?

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
  • HeyHoo,


    Wie oben im Thread steht, geht mein Tutorial irgendwie zu schnell voran.
    Ebenso läuft es doppelt ab.
    Woran kanns liegen?
    hier der Tutorialpublic:

    Spoiler anzeigen
    public Tutorial(playerid)
    {
    if(TutTime[playerid] >= 1)
    {
    if(TutTime[playerid] == 2)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Willkommen auf Lifestyle Roleplay ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Willkommen auf Lifestyle Roleplay! Nun folgt ein kleines Tutorial, bitte passe");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"hier gut auf, damit du in deinem weiteren \"LSR-Leben\" besser voran kommst!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Solltest du trotzdem noch Fragen haben, kannst du diese dem Adminteam per /support stellen.");
    }
    else if(TutTime[playerid] == 10)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerPos(playerid,1484.1963,-1803.0304,4.6836);
    SetPlayerCameraPos(playerid,1508.2654,-1646.2766,29.9984);
    SetPlayerCameraLookAt(playerid,1551.6426,-1674.4935,15.9329);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Los Santos Police Department ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Das Los Santos Police Department ist eines der wichtigsten Gebäude in Los Santos!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hier ist die Base des LSPD. Ebenso kannst du hier ab Level 7 einen Waffenschein erkaufen.");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Solltest du einmal Probleme haben, kannst du immer einen Polizisten unter der Nummer");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"112 anrufen!");
    }
    else if(TutTime[playerid] == 18)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerCameraPos(playerid,1496.5732,-1742.0266,28.8469);
    SetPlayerCameraLookAt(playerid,1484.1963,-1803.0304,14.6836);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Die Stadthalle ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"In der Stadthalle kannst du dir einen Personalausweis kaufen,");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Arbeitslosengeld beantragen und die Jobangebotsliste durchgehen!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Als Neuling, ist es immer wichtig, einen Beruf auszuüben,");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"um sich ein kleines Vermögen für später aufbauen zu können!");
    }
    else if(TutTime[playerid] == 26)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerPos(playerid,1191.0471,-912.3734,48.4298);
    SetPlayerCameraPos(playerid,1173.7498,-963.0220,66.3751);
    SetPlayerCameraLookAt(playerid,1199.3129,-909.8687,48.4400);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Der BurgerShotNorth ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Wie auf jedem Reallife Server, so auch hier gibt es einen BSN!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Der BSN (BurgerShotNorth) ist ein wichtiger Treffpunkt für z.B. Drogengeschäfte.");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ebenso, kannst du hier deine Bedürfnisse auffüllen. Allerdings kannst du deine Bedürfnisse auf in");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"mehr als 15 weiteren Essensläden in Los Santos befriedigen!");
    }
    else if(TutTime[playerid] == 34)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerPos(playerid,1208.8589,-1282.6490,63.5066);
    SetPlayerCameraPos(playerid,1227.7736,-1306.5221,31.5746);
    SetPlayerCameraLookAt(playerid,1176.4021,-1323.7107,14.0195);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Das All Saints General Hospital ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Das hier ist das All Saints General Hospital!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Solltest du einmal sterben, aber keine Versicherung haben,");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"wirst du vor dem Hospital aufwachen!");
    }
    else if(TutTime[playerid] == 42)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerPos(playerid,1466.3729,-1046.1766,23.8281);
    SetPlayerCameraPos(playerid,1481.1951,-1046.1508,32.7358);
    SetPlayerCameraLookAt(playerid,1460.8516,-1012.9667,26.8438);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Die Los Santos Bank ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"In der Bank kannst du dir ein Bankkonto erstellen.");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ebenso kannst du, wenn du mal knapp bei Kasse bist, die Bank");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"ausrauben. Dafür bekommst du allerdings Wanteds, und musst dann vielleicht in den Knast!");
    }
    else if(TutTime[playerid] == 50)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerPos(playerid,1306.5941,-1864.2584,10.6566);
    SetPlayerCameraPos(playerid,1306.5941,-1864.2584,22.6566);
    SetPlayerCameraLookAt(playerid,1321.0277,-1845.1135,13.5469);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Die Fahrschule ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"In der Fahrschule kannst du alle verschiedenen Führerscheinarten erwerben!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Diese sind nicht grade sehr Teuer, ebenso auch ziemlich schnell gemacht.");
    }
    else if(TutTime[playerid] == 58)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SetPlayerCameraLookAt(playerid,1264.2135,-1835.6859,13.3815);
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Der Gebrauchtwagenhändler ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Am Anfang wirst du bestimmt noch nicht soviel Geld haben, dass du dir einen");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sportwagen leisten kannst. Für den Anfang, reicht ein Gebrauchtwagen völlig aus.");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Später, kann man ja vielleicht mal über einen Sportwagen nachdenken ;)");
    }
    else if(TutTime[playerid] == 66)
    {
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGBLUE," ");
    SendClientMessage(playerid,COLOR_MSGRED,"*~~~~~ Das Tutorialende ~~~~~*");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vielen Dank, dass du dir Zeit fürs Tutorial genommen hast!");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Wenn du weitere Fragen hast, melde dich beim Adminteam unter /support!");
    }
    else if(TutTime[playerid] == 67)
    {
    KillTimer(TutTimer[playerid]);
    TutTime[playerid] = -1;
    TogglePlayerControllable(playerid,true);
    TogglePlayerSpectating(playerid,false);
    ShowPlayerDialog(playerid,DIALOG_GESCHLECHT,DIALOG_STYLE_LIST,"Geschlecht auswählen","Männlich\nWeiblich","Weiter","Abbrechen");
    SetCameraBehindPlayer(playerid);
    }
    TutTime[playerid]++;
    }
    }


    /e Code

  • else if(TutTime[playerid] == 10)



    stell das mal höher also die 10...
    Sollen das die Sekunden sein?