Ich finde den Fehler 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
  • #define FILTERSCRIPT


    #include <a_samp>


    new tschranke;


    forward TerroristenSchranke();


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Terroristen Base");
    print("--------------------------------------\n");

    {
    CreateObject(12942, -789.361877, 2445.030518, 156.077271, 0.0000, 0.0000, 180.0001);
    CreateObject(11440, -774.631714, 2430.651123, 155.692413, 0.0000, 0.0000, 191.2502);
    CreateObject(751, -815.973511, 2364.463623, 150.826080, 0.0000, 0.0000, 0.0000);
    CreateObject(966, -812.021423, 2363.218994, 150.482544, 0.0000, 356.2615, 157.5000);
    tschranke = CreateObject(968, -812.032104, 2363.208252, 151.366837, 0.8594, 94.7094, 337.5000);
    CreateObject(967, -813.649597, 2363.912598, 150.586945, 0.0000, 0.0000, 247.5000);
    CreateObject(751, -804.100098, 2359.678955, 149.765747, 0.0000, 0.0000, 213.7499);



    CreateVehicle(505,-812.7223,2422.9885,157.0509,225.9114,44,44,1500); // jeep1
    CreateVehicle(505,-814.8560,2418.4524,156.9125,222.3363,44,44,1500); // jeep2
    CreateVehicle(500,-816.0045,2419.8125,156.9059,221.5357,44,44,1500); // jeep2richtig
    CreateVehicle(468,-786.0939,2395.7126,156.2615,15.9117,44,44,1500); // sanchez1
    CreateVehicle(468,-783.8835,2396.1401,156.3603,14.2950,4,4,1500); // sanchez2
    CreateVehicle(468,-781.4929,2397.1072,156.4907,17.4964,44,44,1500); // sanchez3
    CreateVehicle(468,-778.6634,2397.9390,156.5994,20.7757,4,4,1500); // sanchez4
    CreateVehicle(471,-778.0492,2406.6475,156.5521,89.2579,44,44,1500); // quad1
    CreateVehicle(471,-778.1838,2409.5842,156.5658,95.9376,44,44,1500); // quad2
    CreateVehicle(471,-778.3491,2412.9172,156.5782,93.9154,44,44,1500); // quad3
    }
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/topen", true)==0)
    {
    MoveObject(tschranke,-812.032104,2363.208252,151.366837, 2);
    SetTimer("TerroristenSchranke", 12000,0);
    return 1;
    }
    return 1;
    }


    public TerroristenSchranke()
    {
    MoveObject(tschranke,-812.032104, 2363.208252, 151.366837, 2);
    return 1;
    }


    ich finde den fehler einfach nicht, die schranke öffnet sich nicht -.-

  • #define FILTERSCRIPT


    #include <a_samp>


    new tschranke;


    forward TerroristenSchranke();


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Terroristen Base");
    print("--------------------------------------\n");


    { //<- Die hier sind soweit ich weiß falsch
    CreateObject(12942, -789.361877, 2445.030518, 156.077271, 0.0000, 0.0000, 180.0001);
    CreateObject(11440, -774.631714, 2430.651123, 155.692413, 0.0000, 0.0000, 191.2502);
    CreateObject(751, -815.973511, 2364.463623, 150.826080, 0.0000, 0.0000, 0.0000);
    CreateObject(966, -812.021423, 2363.218994, 150.482544, 0.0000, 356.2615, 157.5000);
    tschranke = CreateObject(968, -812.032104, 2363.208252, 151.366837, 0.8594, 94.7094, 337.5000);
    CreateObject(967, -813.649597, 2363.912598, 150.586945, 0.0000, 0.0000, 247.5000);
    CreateObject(751, -804.100098, 2359.678955, 149.765747, 0.0000, 0.0000, 213.7499);



    CreateVehicle(505,-812.7223,2422.9885,157.0509,225.9114,44,44,1500); // jeep1
    CreateVehicle(505,-814.8560,2418.4524,156.9125,222.3363,44,44,1500); // jeep2
    CreateVehicle(500,-816.0045,2419.8125,156.9059,221.5357,44,44,1500); // jeep2richtig
    CreateVehicle(468,-786.0939,2395.7126,156.2615,15.9117,44,44,1500); // sanchez1
    CreateVehicle(468,-783.8835,2396.1401,156.3603,14.2950,4,4,1500); // sanchez2
    CreateVehicle(468,-781.4929,2397.1072,156.4907,17.4964,44,44,1500); // sanchez3
    CreateVehicle(468,-778.6634,2397.9390,156.5994,20.7757,4,4,1500); // sanchez4
    CreateVehicle(471,-778.0492,2406.6475,156.5521,89.2579,44,44,1500); // quad1
    CreateVehicle(471,-778.1838,2409.5842,156.5658,95.9376,44,44,1500); // quad2
    CreateVehicle(471,-778.3491,2412.9172,156.5782,93.9154,44,44,1500); // quad3
    } //<- Falsch
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/topen", true)==0)
    {
    MoveObject(tschranke,-812.032104,2363.208252,151.366837, 2);
    SetTimer("TerroristenSchranke", 12000,0);
    return 1;
    }
    return 1;
    }


    public TerroristenSchranke()
    {
    MoveObject(tschranke,-812.032104, 2363.208252, 151.366837, 2);
    return 1;
    }