probleme mit closed at the end of file

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
  • ja hallo ich habe probleme mit meinen bot und es ist die zeile


    error 030: compound statement not closed at the end of file (started at line 42)






    //Includes
    #include



    //News
    new LSPDcar;
    new PDbike;
    new Train;
    new AT400;
    new Coach1;



    //Publics
    public OnFilterScriptInit()
    {
    ConnectNPC("Mike","busbot");
    ConnectNPC("Johnson","copcarbot");
    ConnectNPC("Yards","policebikebot");
    ConnectNPC("Kelroy","trainbot");
    ConnectNPC("Roy","at400bot");

    //Vehicles
    Coach1 = AddStaticVehicle(437, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    LSPDcar = AddStaticVehicle(596, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    PDbike = AddStaticVehicle(523, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    Train = AddStaticVehicle(538, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    AT400 = AddStaticVehicle(577, 2109.1763, 1503.0453, 32.2887, 82.2873, 1, 3);
    }
    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Mike", true))
    {
    PutPlayerInVehicle(playerid, Coach1, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    if(IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Johnson", true))
    {
    PutPlayerInVehicle(playerid, LSPDcar, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Yards", true))
    {
    PutPlayerInVehicle(playerid, PDbike, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Kelroy", true))
    {
    PutPlayerInVehicle(playerid, Train, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Roy", true))
    {
    PutPlayerInVehicle(playerid, AT400, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    return 1;
    }
    }</a_samp>

  • Muss das sein, dass beim include nix steht? Ich kenn mich zwar nicht mit Bots aus, aber das sieht komisch aus^^



    Maddin is my Lord and Master :D
    Musel my one and only b0wm
    Bisafloah is the pokemon that pwns a lot of goddamn ponys.

  • Naja ich kenn mich wie schon gesagt nicht so sehr mit Bots aus aber sag einfach mal welches jetzt Zeile 42 ist


    Wegen : ......the end of file (started at line 42)



    Maddin is my Lord and Master :D
    Musel my one and only b0wm
    Bisafloah is the pokemon that pwns a lot of goddamn ponys.

  • //Includes
    #include <a_samp>



    //News
    new LSPDcar;
    new PDbike;
    new Train;
    new AT400;
    new Coach1;



    //Publics
    public OnFilterScriptInit()
    {
    ConnectNPC("Mike","busbot");
    ConnectNPC("Johnson","copcarbot");
    ConnectNPC("Yards","policebikebot");
    ConnectNPC("Kelroy","trainbot");
    ConnectNPC("Roy","at400bot");


    //Vehicles
    Coach1 = AddStaticVehicle(437, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    LSPDcar = AddStaticVehicle(596, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    PDbike = AddStaticVehicle(523, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    Train = AddStaticVehicle(538, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
    AT400 = AddStaticVehicle(577, 2109.1763, 1503.0453, 32.2887, 82.2873, 1, 3);
    }


    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid))
    {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Mike", true))
    {
    PutPlayerInVehicle(playerid, Coach1, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    if(!strcmp(npcname, "Johnson", true))
    {
    PutPlayerInVehicle(playerid, LSPDcar, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    if(!strcmp(npcname, "Yards", true))
    {
    PutPlayerInVehicle(playerid, PDbike, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    if(!strcmp(npcname, "Kelroy", true))
    {
    PutPlayerInVehicle(playerid, Train, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    if(!strcmp(npcname, "Roy", true))
    {
    PutPlayerInVehicle(playerid, AT400, 0);
    SetPlayerSkin(playerid, 255);
    ResetPlayerWeapons(playerid);
    }
    }
    return 1;
    }


    Versuch es mal so ;)