brauche error hilfe

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
  • Hey leute wieso habe ich die 2 errors?^
    "C:\Users\Player\Desktop\sinvolle mods\Mein samp server\gamemodes\grandlarc.pwn(127) : warning 217: loose indentation
    C:\Users\Player\Desktop\sinvolle mods\Mein samp server\gamemodes\grandlarc.pwn(130) : warning 225: unreachable code
    C:\Users\Player\Desktop\sinvolle mods\Mein samp server\gamemodes\grandlarc.pwn(130) : warning 217: loose indentation
    C:\Users\Player\Desktop\sinvolle mods\Mein samp server\gamemodes\grandlarc.pwn(273) : error 021: symbol already defined: "tor"
    C:\Users\Player\Desktop\sinvolle mods\Mein samp server\gamemodes\grandlarc.pwn(274) : error 021: symbol already defined: "tor"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.
    "





    und hier der pastebin




    #include <a_samp>


    new ls_enter;
    new tor;



    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Willkommen auf dem server");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {



    ls_enter=CreatePickup(1241,1,1497.0245,-687.8918,95.5633);
    DisableInteriorEnterExits();






    SetGameModeText("Blank Script");
    AddPlayerClass(29,1497.1183,-688.9510,95.1913,166.5781,0,0,0,0,0,0);
    AddPlayerClass(29,1317.3231,-857.9669,39.5781,181.4877,0,0,0,0,0,0); // ns
    //cars


    AddStaticVehicle(409,1515.2843,-695.3798,94.5500,89.6945,1,1);
    AddStaticVehicle(471,1519.5222,-687.4847,94.2318,89.1284,120,112);
    AddStaticVehicle(462,1317.9233,-854.2601,39.1872,177.6004,1,2); // roller ns1

    //objekte
    CreateObject(970, 1488.6999511719, -700.40002441406, 94.300003051758, 0, 0, 0);
    CreateObject(970, 1509.8000488281, -700.09997558594, 94.199996948242, 0, 0, 0);
    CreateObject(970, 1501.69921875, -700.3994140625, 94.300003051758, 0, 0, 0);
    CreateObject(970, 1505.69921875, -700.3994140625, 94.300003051758, 0, 0, 0);



    //tor
    tor = CreateObject(969, 1490.9000244141, -700.40002441406, 93.800003051758, 0, 0, 0);

    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerInterior(playerid,0);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if (strcmp("/auf",cmdtext, true, 10) == 0)

    {
    MoveObject(tor,1490.9000244141, -700.40002441406, 83.800003051758,2.0);
    SetTimer("tor",100523,false);
    }
    {
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid==ls_enter)
    {




    }
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }
    forward tor();
    public tor()
    {
    MoveObject(tor,1490.9000244141, -700.40002441406, 93.800003051758,2.0);
    }