Bitte um Hilfe, suche Klammerfehler

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
  • hier der Ausschnitt des Codes, denn ich als neustes eingefügt habe




    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TutorialBot",true))
    {
    Attach3DTextLabelToPlayer(Linie1 Richtung BSN-OAMT-LSPD,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,botauto1,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TutorialBot2",true))
    {
    Attach3DTextLabelToPlayer(Linie2 Richtung SanFierro über LosSantos Innenstadt,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,botauto2,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Zugbot",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1
    PutPlayerInVehicle(playerid,Zugbot,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Zugbot2",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,Zugbot2,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Flugbot",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pFlyLic[playerid]=1;
    PutPlayerInVehicle(playerid,Flugbot,0);
    return 1;
    }

  • Ganz unten fehlt noch eine....


    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TutorialBot",true))
    {
    Attach3DTextLabelToPlayer(Linie1 Richtung BSN-OAMT-LSPD,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,botauto1,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"TutorialBot2",true))
    {
    Attach3DTextLabelToPlayer(Linie2 Richtung SanFierro über LosSantos Innenstadt,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,botauto2,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Zugbot",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1
    PutPlayerInVehicle(playerid,Zugbot,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Zugbot2",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pCarLic[playerid]=1;
    PutPlayerInVehicle(playerid,Zugbot2,0);
    return 1;
    }
    new playername[64];
    GetPlayerName(playerid,playername,64);
    if(!strcmp(playername,"Flugbot",true))
    {
    Attach3DTextLabelToPlayer(Zugbot Los-Santos,playerid,0.0,0.0,0.45);
    SetPlayerSkin(playerid,205);
    SetPlayerPos(playerid,376.0649,-65.4647,1001.5078);
    SetPlayerFacingAngle(playerid,177.8031);
    pFlyLic[playerid]=1;
    PutPlayerInVehicle(playerid,Flugbot,0);
    return 1;
    }
    }// hier
    }//hier

    Aber das Thema war unnötig

    Zita aus dem Livestream chat von Internetlink von BigYoda ;)


    Zitat

    BigYoda: Ink sagt: "Ach OnGamemodeInit brauchen wir nicht löschen" Yoda: "Was ist das andere für ein Kram?". Ink: "Egal lösch einfach alles". Tutorial Ende :D





    DDG is Back


    Froum: DDG Forum
    Server IP: 85.25.20.59:7777
    Team Speak 3: 85.25.20.59