Beiträge von walter.BISHOP

    Wie gesagt, der Code steht außerhalb jeder Callbacks und Funktionen, daher wird er nie fehlerfrei kompilieren.


    Ich nehme an, da der Code auskommentiert war, wurde er woanders entfernt und dort zwischengespeichert, bzw. von woanders her kopiert.

    Es wird fehlerfrei Komlimiert wenn ich es als // oder /* Kommentar mach, es war auch früher, so, aber dass Problem ist wenn jemand sich einloggt, dann kommt kein Tutorial oder kein einlogge Daten, es ist ein Standbild.

    bei deinem jetzigen Post hast du eine } vergessen.Hab es dir hier hinzugefügt :)


    Danke aber:

    Der Code war GRÜN, ich ahbe aber /* Entfernt,
    Der code ist vom Tutorial Zeile 71000



    /*if(tuts[playerid] !=999){
    tuts[playerid]++;



    if(tuts[playerid] == 2){
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");


    SetPlayerCameraPos(playerid, 470.52, -2045.70, 40.68);
    SetPlayerCameraLookAt(playerid, 465.62, -2045.82, 39.71); // Riesenrad
    SetPlayerToPos(playerid, 379.8153,-2033.6333,7.8301);
    TogglePlayerControllable(playerid, false);
    TextDrawSetString(Textdraw2ss[playerid], "Anfang - der sich hier lohnt!");
    TextDrawSetString(Textdraw3ss[playerid], "Willkommen. Dieser Server ist anders, als man den sonst kennt.~n~~n~Es folgt ein kleines Tutorial, damit der Einstieg in den~n~ Server nicht ganz so schwer wird.~n~Server by: Xam_Res");
    }


    else if(tuts[playerid] == 7){
    SetPlayerCameraPos(playerid, 2130.39, -1120.25, 31.43); // Autohaus
    SetPlayerCameraLookAt(playerid, 2129.49, -1125.17, 29.75);
    SetPlayerToPos(playerid, 2129.2070,-1123.9541,25.4275);
    TextDrawSetString(Textdraw2ss[playerid], " Autohaus");
    TextDrawSetString(Textdraw3ss[playerid], "Ohne ein Auto geht garnichts! Kauf dir eins, wenn du das Geld dazu hast! Ganz einfach, ~n~einsteigen: eine Probefahrt machen und~n~wenns gefeallt kaufen!");
    }


    else if(tuts[playerid] == 14){
    SetPlayerCameraPos(playerid, 810.88, -1597.35, 15.07);
    SetPlayerCameraLookAt(playerid, 812.74, -1592.71, 14.77); // Binco
    SetPlayerToPos(playerid, 824.9313,-1609.3192,13.5469);
    TextDrawSetString(Textdraw2ss[playerid], " Skinshop");
    TextDrawSetString(Textdraw3ss[playerid], "Der Skinshop - Hier koennen sie ganz einfach Skins kaufen. Dies ist aber erst moeglich~n~wenn sie genug Geld in der Tasche haben~n~Skinshops sind immer geoffnet. Wie man eins kauft ? Ganz einfach~n~ Rein gehen!");
    }


    else if(tuts[playerid] == 21){
    SetPlayerCameraPos(playerid, 1776.05, -1691.68, 16.94); // Tunning
    SetPlayerCameraLookAt(playerid, 1780.78, -1693.31, 15.30);
    SetPlayerToPos(playerid, 1798.3762,-1703.3788,13.5295);
    TextDrawSetString(Textdraw2ss[playerid], " Tunning");
    TextDrawSetString(Textdraw3ss[playerid], "Tunnen sie ihr Fahrzeug! Tunning wird gespeichert!");
    }


    else if(tuts[playerid] == 28){
    SetPlayerCameraPos(playerid, 1936.79, -1761.77, 13.65); // Tankstelle
    SetPlayerCameraLookAt(playerid, 1939.11, -1766.20, 13.88);
    SetPlayerToPos(playerid, 1933.4268,-1755.3719,13.3828);
    TextDrawSetString(Textdraw2ss[playerid], " Tankstelle");
    TextDrawSetString(Textdraw3ss[playerid], "Hier koennen sie ihr Fahrzeug tanken. Ganz einfach, auf den Checkpoint fahren~n~Pro Liter 40-90 Cent!");
    }


    else if(tuts[playerid] == 35){
    SetPlayerCameraPos(playerid, 1207.54, -941.80, 55.83); // BurgerShot
    SetPlayerCameraLookAt(playerid, 1206.64, -936.88, 53.90);
    SetPlayerToPos(playerid, 1206.7682,-938.8681,42.7409);
    TextDrawSetString(Textdraw2ss[playerid], " Imbiss");
    TextDrawSetString(Textdraw3ss[playerid], "Irgendwann bekommt jeder mal hunger. In einem Imbiss kann dies befriedigt werden. ~n~Einfach rein! Doch Geld sollte man mit bringen!");
    }


    else if(tuts[playerid] == 42){
    SetPlayerCameraPos(playerid, 2286.60, -2344.01, 15.50); // Trucker
    SetPlayerCameraLookAt(playerid, 2283.23, -2340.31, 15.45);
    SetPlayerToPos(playerid, 2288.7595,-2340.8535,13.5469);
    TextDrawSetString(Textdraw2ss[playerid], "Trucker");
    TextDrawSetString(Textdraw3ss[playerid], "Liefern sie schnell Anheanger, um an gutes Geld zu kommen. Bewerbung ist nicht noetig!");
    }


    else if(tuts[playerid] == 49){
    SetPlayerCameraPos(playerid, 1876.35, -2205.40, 14.65); // Baggage Lieferer
    SetPlayerCameraLookAt(playerid, 1881.34, -2205.38, 14.41);
    SetPlayerToPos(playerid, 1873.8149,-2205.4167,13.5469);
    TextDrawSetString(Textdraw2ss[playerid], "Baggage Lief.");
    TextDrawSetString(Textdraw3ss[playerid], "Liefere schnell Gepeack aus, um an gutes Geld zu kommen. Bewerbung ist nicht noetig!");
    }


    else if(tuts[playerid] == 56){
    SetPlayerCameraPos(playerid, -1017.47, -660.28, 33.78);
    SetPlayerCameraLookAt(playerid, -1017.32, -665.28, 34.23); // Chemie
    SetPlayerToPos(playerid, -1017.4528,-660.8878,32.0078);
    TextDrawSetString(Textdraw2ss[playerid], "Chemie Dienst");
    TextDrawSetString(Textdraw3ss[playerid], "Liefere gefeahrliche Chemikalien. Bewerbung ist nicht noetig!");
    }



    else if(tuts[playerid] == 63){
    SetPlayerCameraPos(playerid, 2489.42, -1559.39, 25.75); // Hotdog
    SetPlayerCameraLookAt(playerid, 2484.99, -1557.08, 25.71);
    SetPlayerToPos(playerid, 2489.1589,-1556.0885,24.0674);
    TextDrawSetString(Textdraw2ss[playerid], " HotDog");
    TextDrawSetString(Textdraw3ss[playerid], "Der Job Hotdog Verkeufer. Liefere schnell HotDogs an andere. Bewerbung ist nicht noetig!");
    }


    else if(tuts[playerid] == 70){
    SetPlayerCameraPos(playerid, 2073.13, -1806.30, 24.22); // Pizza
    SetPlayerCameraLookAt(playerid, 2078.13, -1806.18, 23.06);
    SetPlayerToPos(playerid, 2086.4446,-1818.3519,13.3904);
    TextDrawSetString(Textdraw2ss[playerid], "Pizza Lieferer");
    TextDrawSetString(Textdraw3ss[playerid], "Pizza Lieferer. Liefere schnell Pizzen. Pro Checkpoint gibt je nach Level bestimmt viel Geld!");
    }




    else if(tuts[playerid] == 77){
    SetPlayerCameraPos(playerid, 2095.07, -2027.97, 37.00); // Mll
    SetPlayerCameraLookAt(playerid, 2090.09, -2027.53, 33.13);
    SetPlayerToPos(playerid, 2103.3005,-2003.6052,13.5469);
    TextDrawSetString(Textdraw2ss[playerid], " Muell Dienst");
    TextDrawSetString(Textdraw3ss[playerid], "Liefere Muell, um an schnelles Geld zu kommen. Bewerbung ist nicht noetig!");
    }

    Der Code steht zusammenhanglos am Ende der Datei. Das funktioniert nicht.
    Er muss an die entsprechende Stelle im Code (Callback (public)) eingefügt werden, wo er ausgeführt werden soll (z.B. in OnPlayerConnect, oder woanders (Timer?)).

    Bei der Zeile 13k habe ich es hin getan stimmt das so?
    public OnPlayerConnect(playerid){


    PlayerInfo[playerid][frisch_eingeloggt] = 1;
    if(LogFilesJet == 1){
    printf("OnPlayerConnect 0 | Name: %s", PlayerName(playerid));
    }
    PlayerInfo[playerid][gPlayerLogged] = 0;
    SetTimer("ResetConnect", 3000, 0);
    ConnectPlayers++;
    Leben[playerid] = 100;
    Ruestung[playerid] = 0;
    if(ConnectPlayers > 20){
    SendClientMessage(playerid, COLOR_RED, "Zu viele Spieler versuchen gleichzeitig zu connecten. Versuche es etwas später erneut");
    KickPlayer(playerid);
    blockhospital[playerid]=1;
    blockhospitaltimer[playerid]=SetTimerEx("BlockHospital",25000,false,"i",playerid);
    return 1;
    }
    }
    public OnVehicleRespray(playerid,vehicleid, color1, color2)
    {


    return 1;
    }
    */



    if(tuts[playerid] !=999){
    tuts[playerid]++;



    if(tuts[playerid] == 2){
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");


    SetPlayerCameraPos(playerid, 470.52, -2045.70, 40.68);
    SetPlayerCameraLookAt(playerid, 465.62, -2045.82, 39.71); // Riesenrad
    SetPlayerToPos(playerid, 379.8153,-2033.6333,7.8301);
    TogglePlayerControllable(playerid, false);
    TextDrawSetString(Textdraw2ss[playerid], "Anfang - der sich hier lohnt!");
    (Textdraw3ss[playerid], "Willkommen. Dieser Server ist anders, als man den sonst kennt.~n~~n~Es folgt ein kleines Tutorial, damit der Einstieg in den~n~ Server nicht ganz so schwer wird.~n~Server by: Xam_Res");
    }


    else if(tuts[playerid] == 7){
    SetPlayerCameraPos(playerid, 2130.39, -1120.25, 31.43); // Autohaus
    SetPlayerCameraLookAt(playerid, 2129.49, -1125.17, 29.75);
    SetPlayerToPos(playerid, 2129.2070,-1123.9541,25.4275);
    TextDrawSetString(Textdraw2ss[playerid], " Autohaus");
    TextDrawSetString(Textdraw3ss[playerid], "Ohne ein Auto geht garnichts! Kauf dir eins, wenn du das Geld dazu hast! Ganz einfach, ~n~einsteigen: eine Probefahrt machen und~n~wenns gefeallt kaufen!");
    }


    Kannst du bitte den Code von Zeile 70950 bis 71000 posten? Einzelne Zeilen nicht nicht wirklich aussagekräftig hier.

    }
    public OnVehicleRespray(playerid,vehicleid, color1, color2)
    {


    return 1;
    }
    */



    if(tuts[playerid] !=999){
    tuts[playerid]++;



    if(tuts[playerid] == 2){
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");
    SendClientMessage(playerid, COLOR_YELLOW," ");


    SetPlayerCameraPos(playerid, 470.52, -2045.70, 40.68);
    SetPlayerCameraLookAt(playerid, 465.62, -2045.82, 39.71); // Riesenrad
    SetPlayerToPos(playerid, 379.8153,-2033.6333,7.8301);
    TogglePlayerControllable(playerid, false);
    TextDrawSetString(Textdraw2ss[playerid], "Anfang - der sich hier lohnt!");
    TextDrawSetString(Textdraw3ss[playerid], "Willkommen. Dieser Server ist anders, als man den sonst kennt.~n~~n~Es folgt ein kleines Tutorial, damit der Einstieg in den~n~ Server nicht ganz so schwer wird.~n~Server by: Xam_Res");
    }


    else if(tuts[playerid] == 7){
    SetPlayerCameraPos(playerid, 2130.39, -1120.25, 31.43); // Autohaus
    SetPlayerCameraLookAt(playerid, 2129.49, -1125.17, 29.75);
    SetPlayerToPos(playerid, 2129.2070,-1123.9541,25.4275);
    TextDrawSetString(Textdraw2ss[playerid], " Autohaus");
    TextDrawSetString(Textdraw3ss[playerid], "Ohne ein Auto geht garnichts! Kauf dir eins, wenn du das Geld dazu hast! Ganz einfach, ~n~einsteigen: eine Probefahrt machen und~n~wenns gefeallt kaufen!");
    }


    Jetzt sind es 9 Errors


    C:\Users\Markus\Desktop\Life of San Andreas\gamemodes\script3.3.2.pwn(70996 -- 71004) : error 021: symbol already defined: "SetPlayerToPoS"


    Code:
    Zeile: 70959 if(tuts[playerid] !=999){
    Zeile: 70963 if(tuts[playerid] == 2){]
    Zeile: 70985 SetPlayerCameraPos(playerid, 470.52, -2045.70, 40.68);
    Zeile: 70987 SetPlayerToPoS(playerid, 379.8153,-2033.6333,7.8301);

    Bitte um Hilfe 7 Errors.




    7 Errors.