Tutorial Checkpointfehler?

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
  • Hi!


    Ich habe ein Tutorial gescriptet, in dem man Checkpoints ablaufen soll und man nach jedem Checkpoint im Chat Informationen bekommt.
    Das Problem ist nur, dass nur der erste Checkpoint auftaucht und wenn man in diesen reinläuft, Werden alle Infos die über die nächsten Checkpoints erst gegeben werden auf einmal gegeben. Die Anderen Checkpoints tauchen garnicht auf.


    Hier das Script:
    new TutCheckpoint;


    if(TutCheckpoint==1)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1728.3666,-1860.6528,13.5785, 3.0); //Roller
    TutCheckpoint=2;
    }
    if(TutCheckpoint==2)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1481.2649,-1744.1964,13.5469, 3.0); //vor der Stadthalle
    TutCheckpoint=3;
    }
    if(TutCheckpoint==3)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1480.8901,-1768.1370,18.7958, 3.0); //Stadthallle betreten
    TutCheckpoint=4;
    }
    if(TutCheckpoint==4)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 364.3228,173.6792,1008.3828, 3.0); //Stadthallle benutzen
    TutCheckpoint=5;
    }
    if(TutCheckpoint==5)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 389.8223,173.6132,1008.3828, 3.0); //Stadthallle verlassen
    TutCheckpoint=6;
    }
    if(TutCheckpoint==6)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1352.2593,-1757.6093,13.5078, 3.0); //24/7 eingang
    TutCheckpoint=7;
    }
    if(TutCheckpoint==7)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2.1659,-29.0133,1003.5494, 3.0); //24/7 kasse
    TutCheckpoint=8;
    if(TutCheckpoint==8)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 5.7766,-29.5728,1003.5494, 3.0); //24/7 verlassen
    TutCheckpoint=9;
    }
    if(TutCheckpoint==9)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1310.0542,-1369.0811,13.5575, 3.0); //Arbeitsamt eingang
    TutCheckpoint=10;
    }
    if(TutCheckpoint==10)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2217.2976,-1146.5791,1025.7969, 3.0); //arbeitsamt menu
    TutCheckpoint=11;
    }
    if(TutCheckpoint==11)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2217.2976,-1146.5791,1025.7969, 3.0); //arbeitsamt verlassen
    TutCheckpoint=12;
    }
    if(TutCheckpoint==12)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1107.1431,-1448.8514,15.7969, 3.0); //Handyladen Eingang
    TutCheckpoint=13;
    }
    if(TutCheckpoint==13)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, -2236.9824,130.3136,1035.4141, 3.0); //Handyladen Kasse
    TutCheckpoint=14;
    }
    if(TutCheckpoint==14)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, -2239.4277,136.7537,1035.4141, 3.0); //Handyladen Ausgang
    TutCheckpoint=15;
    }
    if(TutCheckpoint==15)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1151.1492,-1444.5265,15.7969, 3.0); //Binco Eingang
    TutCheckpoint=16;
    }
    if(TutCheckpoint==16)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 207.8999,-102.5534,1005.2578, 3.0); //Binco kaufen
    TutCheckpoint=17;
    }
    if(TutCheckpoint==17)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1264.8219,-1812.8417,13.1017, 3.0); //Müllman Job
    TutCheckpoint=18;
    }
    if(TutCheckpoint==18)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    }


    if (strcmp("/tutorialstarten", cmdtext, true, 16) == 0){
    SetPlayerCheckpoint(playerid, 1715.0367,-1879.6499,13.5666, 3.0);
    TutCheckpoint=1;
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    }


    Würde mich über Hilfe freuen :)


    ps ich bin noch ein absoluter noob im scripten :wacko: also wenn möglich bitte kein fachchinesisch

  • if(TutCheckpoint==1)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1728.3666,-1860.6528,13.5785, 3.0); //Roller
    TutCheckpoint=2;
    }
    else if(TutCheckpoint==2)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1481.2649,-1744.1964,13.5469, 3.0); //vor der Stadthalle
    TutCheckpoint=3;
    }
    else if(TutCheckpoint==3)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1480.8901,-1768.1370,18.7958, 3.0); //Stadthallle betreten
    TutCheckpoint=4;
    }
    else if(TutCheckpoint==4)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 364.3228,173.6792,1008.3828, 3.0); //Stadthallle benutzen
    TutCheckpoint=5;
    }
    else if(TutCheckpoint==5)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 389.8223,173.6132,1008.3828, 3.0); //Stadthallle verlassen
    TutCheckpoint=6;
    }
    else if(TutCheckpoint==6)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1352.2593,-1757.6093,13.5078, 3.0); //24/7 eingang
    TutCheckpoint=7;
    }
    else if(TutCheckpoint==7)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2.1659,-29.0133,1003.5494, 3.0); //24/7 kasse
    TutCheckpoint=8;
    }
    else if(TutCheckpoint==8)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 5.7766,-29.5728,1003.5494, 3.0); //24/7 verlassen
    TutCheckpoint=9;
    }
    else if(TutCheckpoint==9)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1310.0542,-1369.0811,13.5575, 3.0); //Arbeitsamt eingang
    TutCheckpoint=10;
    }
    else if(TutCheckpoint==10)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2217.2976,-1146.5791,1025.7969, 3.0); //arbeitsamt menu
    TutCheckpoint=11;
    }
    else if(TutCheckpoint==11)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 2217.2976,-1146.5791,1025.7969, 3.0); //arbeitsamt verlassen
    TutCheckpoint=12;
    }
    else if(TutCheckpoint==12)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1107.1431,-1448.8514,15.7969, 3.0); //Handyladen Eingang
    TutCheckpoint=13;
    }
    else if(TutCheckpoint==13)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, -2236.9824,130.3136,1035.4141, 3.0); //Handyladen Kasse
    TutCheckpoint=14;
    }
    else if(TutCheckpoint==14)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, -2239.4277,136.7537,1035.4141, 3.0); //Handyladen Ausgang
    TutCheckpoint=15;
    }
    else if(TutCheckpoint==15)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1151.1492,-1444.5265,15.7969, 3.0); //Binco Eingang
    TutCheckpoint=16;
    }
    else if(TutCheckpoint==16)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 207.8999,-102.5534,1005.2578, 3.0); //Binco kaufen
    TutCheckpoint=17;
    }
    else if(TutCheckpoint==17)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SetPlayerCheckpoint(playerid, 1264.8219,-1812.8417,13.1017, 3.0); //Müllman Job
    TutCheckpoint=18;
    }
    else if(TutCheckpoint==18)
    {
    DisablePlayerCheckpoint(playerid);
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    SendClientMessage(playerid, Grey, "text");
    }
    So müsste es gehen ;]


    Gruss: Sonic

    I didn't hit you. I high fived your face.