[Hilfe]Tutorial geht nicht

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
  • Hallo liebe Community,


    Ich habe in meinem Gamemode ein tutorial eingebaut.
    Als erstes muss man sich bei mir als Neuling ein Passwort eingeben. (Funktioniert)
    Danach gibt man sein Geschlecht an un sein Alter. (Funktioniert auch)
    Als nächstes sollte dann das Tutorial starten aber es Passiert nix ich kann noch nicht mal Spawnen.
    Ich hoffe Ihr könnt mir helfen.


    Hier die einzelne Script Stücke.


    #define DMMENU 1309
    #define OOCMENU 1308
    #define SEXMENU 1335
    #define PGMENU 1431
    #define CKMENU 1232
    #define PCMENU 3641
    #define AGEMENU 5625


    if(dialogid == SEXMENU)
    {
    if(response)
    {
    SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pSex] = 1;
    RegistrationStep[playerid] = 2;
    SetPlayerSkin(playerid, 185);
    ShowPlayerDialog(playerid, AGEMENU, DIALOG_STYLE_INPUT, "{00C0FF}Frage 2", "{FFFFFF}- Wie alt bist du ?", "Bestätigen", "Beenden");
    return 0;
    }
    else
    {
    SetPlayerPos(playerid, 1.71875, 30.4062, 1200.34);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pSex] = 2;
    RegistrationStep[playerid] = 2;
    SetPlayerSkin(playerid, 192);
    ShowPlayerDialog(playerid, AGEMENU, DIALOG_STYLE_INPUT, "{00C0FF}Frage 2", "{FFFFFF}- Wie alt bist du ?", "Bestätigen", "Beenden");
    return 0;
    }
    }
    if(dialogid == AGEMENU)
    {
    if(response)
    {
    RegistrationStep[playerid] = 0;
    TutTime[playerid] = 0;
    CanTalk[playerid] = 0;
    return 1;
    }
    }
    if(dialogid == OOCMENU)
    {
    if(response)
    {
    if(listitem == 0) //
    {
    if(RegistrationStep[playerid] == 3)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 1) //
    {
    if(RegistrationStep[playerid] == 3)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 2) //
    {
    if(RegistrationStep[playerid] == 3)
    {
    RegistrationStep[playerid] = 4;
    ShowPlayerDialog(playerid, DMMENU, DIALOG_STYLE_LIST, "What does DM mean?","Death Metal\nDeath Match\nDangerous Monkey ", "Select", "Beenden");
    return 1;
    }
    }
    }
    return 1;
    }
    if(dialogid == DMMENU)
    {
    if(response)
    {
    if(listitem == 0) //
    {
    if(RegistrationStep[playerid] == 4)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 1) //
    {
    if(RegistrationStep[playerid] == 4)
    {
    RegistrationStep[playerid] = 5;
    ShowPlayerDialog(playerid, PGMENU, DIALOG_STYLE_LIST, "What does PG mean?","Power Gaming\nPig Gaming\nPlay Grants", "Select", "Beenden");
    return 1;
    }
    }
    if(listitem == 2) //
    {
    if(RegistrationStep[playerid] == 4)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    }
    return 1;
    }
    if(dialogid == PGMENU)
    {
    if(response)
    {
    if(listitem == 0) //
    {
    if(RegistrationStep[playerid] == 5)
    {
    RegistrationStep[playerid] = 6;
    ShowPlayerDialog(playerid, PCMENU, DIALOG_STYLE_LIST, "Provoking Cops is allowed ?","Yes it is.\nIf the cop Agree\nNever unless with Admin Permission", "Select", "Beenden");
    return 1;
    }
    }
    if(listitem == 1) //
    {
    if(RegistrationStep[playerid] == 5)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 2) //
    {
    if(RegistrationStep[playerid] == 5)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    }
    return 1;
    }
    if(dialogid == PCMENU)
    {
    if(response)
    {
    if(listitem == 0) //
    {
    if(RegistrationStep[playerid] == 6)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 1) //
    {
    if(RegistrationStep[playerid] == 6)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 2) //
    {
    if(RegistrationStep[playerid] == 6)
    {
    RegistrationStep[playerid] = 7;
    ShowPlayerDialog(playerid, CKMENU, DIALOG_STYLE_LIST, "What does CK mean?","Never heard of\nChicken Krap\nCharchter Kill", "Select", "Beenden");
    return 1;
    }
    }
    }
    return 1;
    }
    if(dialogid == CKMENU)
    {
    if(response)
    {
    if(listitem == 0) //
    {
    if(RegistrationStep[playerid] == 8)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 1) //
    {
    if(RegistrationStep[playerid] == 8)
    {
    SendClientMessage(playerid, COLOR_RED, "Answer Result : Wrong - You have been Kicked.");
    Kick(playerid);
    return 1;
    }
    }
    if(listitem == 2) //
    {
    if(RegistrationStep[playerid] == 8)
    {
    RegistrationStep[playerid] = 0;
    CanTalk[playerid] = 1;
    TutTime[playerid] = 0;
    return 1;
    }
    }
    }
    return 1;
    }