Großes Problem...

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
  • Guten Tag,
    Ich habe ein großes Problem. Ich habe vorhin eine Map eingefügt, und wollte davon die Tore bewegen lassen. Nun habe ich ein Befehl etc. gemacht, und bekomme diese Errors:
    Zeile (2474) : error 076: syntax error in the expression, or invalid function call
    Zeile (2475) : error 076: syntax error in the expression, or invalid function call
    Zeile (2476) : error 076: syntax error in the expression, or invalid function call
    Zeile (2477) : error 076: syntax error in the expression, or invalid function call
    Zeile (2478) : error 076: syntax error in the expression, or invalid function call
    Zeile (2479) : error 076: syntax error in the expression, or invalid function call
    Zeile (2480) : error 076: syntax error in the expression, or invalid function call
    Zeile (2481) : error 076: syntax error in the expression, or invalid function call
    Zeile (2483) : error 076: syntax error in the expression, or invalid function call
    Zeile (2484) : error 076: syntax error in the expression, or invalid function call
    Zeile (5265) : error 076: syntax error in the expression, or invalid function call
    Zeile (5270) : error 076: syntax error in the expression, or invalid function call
    Zeile (5275) : error 076: syntax error in the expression, or invalid function call
    Zeile (5280) : error 076: syntax error in the expression, or invalid function call
    Zeile (5285) : error 076: syntax error in the expression, or invalid function call
    Zeile (5290) : error 076: syntax error in the expression, or invalid function call
    Zeile (5295) : error 076: syntax error in the expression, or invalid function call
    Zeile (5300) : error 076: syntax error in the expression, or invalid function call
    Zeile (5305) : error 076: syntax error in the expression, or invalid function call
    Zeile (5310) : error 076: syntax error in the expression, or invalid function call
    Zeile (5317) : error 021: symbol already defined: "g1"
    Zeile (5318) : error 076: syntax error in the expression, or invalid function call
    Zeile (5322) : error 021: symbol already defined: "g2"
    Zeile (5323) : error 076: syntax error in the expression, or invalid function call
    Zeile (5327) : error 021: symbol already defined: "g3"
    Zeile (5328) : error 076: syntax error in the expression, or invalid function call


    Das:
    forward g1();
    forward g2();
    forward g3();
    forward g4();
    forward g5();
    forward g6();
    forward g7();
    forward g8();
    forward t1();
    forward t2();
    new g1;
    new g2;
    new g3;
    new g4;
    new g5;
    new g6;
    new g7;
    new g8;
    new t1;
    new t2;
    g1=CreateObject(5422, 1757.32, -1130.05, 24.46, 0.00, 0.00, 90.00);//rtwhalle
    g2=CreateObject(5422, 1747.75, -1130.08, 24.46, 0.00, 0.00, 90.00);//kdwohalle 1
    g3=CreateObject(5422, 1740.61, -1130.07, 24.46, 0.00, 0.00, 90.00);//kdowhalle 2
    g4=CreateObject(5422, 1725.36, -1130.08, 24.46, 0.00, 0.00, 90.00);//htlf1
    g5=CreateObject(5422, 1719.56, -1130.07, 24.46, 0.00, 0.00, 90.00);//htlf2
    g6=CreateObject(5422, 1713.73, -1130.06, 24.46, 0.00, 0.00, 90.00);//htlf3
    g7=CreateObject(5422, 1707.89, -1130.06, 24.46, 0.00, 0.00, 90.00);//dlhalle
    g8=CreateObject(5422, 1708.10, -1101.30, 24.46, 0.00, 0.00, 270.00);//hintertor


    t1=CreateObject(1500, 1731.61, -1130.11, 23.04, 0.00, 0.00, 0.00); //vordertür
    t2=CreateObject(1500, 1735.13, -1101.33, 23.04, 0.00, 0.00, 180.00); //hintertür
    ocmd:mv(playerid,params[])
    {
    if(IstSpielerMember(playerid,2))
    {
    if(IsPlayerInRangeOfPoint(playerid,10,1757.32, -1130.05, 24.46))
    {
    MoveObject(g1,2,1757.32, -1130.05, 24.46-10,2.5);
    SetTimer("g1",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1747.75, -1130.08, 24.46))
    {
    MoveObject(g2,2,1747.75, -1130.08, 24.46-10,2.5);
    SetTimer("g2",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1740.61, -1130.07, 24.46))
    {
    MoveObject(g3,2,1740.61, -1130.07, 24.46-10,2.5);
    SetTimer("g3",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1725.36, -1130.08, 24.46))
    {
    MoveObject(g4,2,1725.36, -1130.08, 24.46-10,2.5);
    SetTimer("g4",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1719.56, -1130.07, 24.46))
    {
    MoveObject(g5,2,1719.56, -1130.07, 24.46-10,2.5);
    SetTimer("g5",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1713.73, -1130.06, 24.46))
    {
    MoveObject(g6,2,1713.73, -1130.06, 24.46-10,2.5);
    SetTimer("g6",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1707.89, -1130.06, 24.46))
    {
    MoveObject(g7,2,1707.89, -1130.06, 24.46-10,2.5);
    SetTimer("g7",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1708.10, -1101.30, 24.46))
    {
    MoveObject(g8,2,1708.10, -1101.30, 24.46-10,2.5);
    SetTimer("g8",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1731.61, -1130.11, 23.04))
    {
    MoveObject(t1,2,1731.61, -1130.11, 23.04-10,2.5);
    SetTimer("t1",3000,0);
    }
    if(IsPlayerInRangeOfPoint(playerid,10,1735.13, -1101.33, 23.04))
    {
    MoveObject(t2,2,1735.13, -1101.33, 23.04-10,2.5);
    SetTimer("t1",3000,0);
    }
    }
    return 1;
    }
    public g1()
    {
    MoveObject(g1,2,1757.32, -1130.05, 24.46,2.5);
    return 1;
    }
    public g2()
    {
    MoveObject(g2,2,1747.75, -1130.08, 24.46,2.5);
    return 1;
    }
    public g3()
    {
    MoveObject(g3,2,1740.61, -1130.07, 24.46,2.5);
    return 1;
    }
    public g4()
    {
    MoveObject(g4,2,1725.36, -1130.08, 24.46,2.5);
    return 1;
    }
    public g5()
    {
    MoveObject(g5,2,1719.56, -1130.07, 24.46,2.5);
    return 1;
    }
    public g6()
    {
    MoveObject(g6,2,1713.73, -1130.06, 24.46,2.5);
    return 1;
    }
    public g7()
    {
    MoveObject(g7,2,1707.89, -1130.06, 24.46,2.5);
    return 1;
    }
    public g8()
    {
    MoveObject(g8,2,1708.10, -1101.30, 24.46,2.5);
    return 1;
    }
    public t1()
    {
    MoveObject(t1,2,1731.61, -1130.11, 23.04,2.5);
    return 1;
    }
    public t2()
    {
    MoveObject(t2,2,1735.13, -1101.33, 23.04,2.5);
    return 1;
    }


  • g1 = CreateObject(5422, 1757.32, -1130.05, 24.46, 0.00, 0.00, 90.00);//rtwhalle
    g2 = CreateObject(5422, 1747.75, -1130.08, 24.46, 0.00, 0.00, 90.00);//kdwohalle 1
    g3 = CreateObject(5422, 1740.61, -1130.07, 24.46, 0.00, 0.00, 90.00);//kdowhalle 2
    g4 = CreateObject(5422, 1725.36, -1130.08, 24.46, 0.00, 0.00, 90.00);//htlf1
    g5 =CreateObject(5422, 1719.56, -1130.07, 24.46, 0.00, 0.00, 90.00);//htlf2
    g6 = CreateObject(5422, 1713.73, -1130.06, 24.46, 0.00, 0.00, 90.00);//htlf3
    g7 = CreateObject(5422, 1707.89, -1130.06, 24.46, 0.00, 0.00, 90.00);//dlhalle
    g8 = CreateObject(5422, 1708.10, -1101.30, 24.46, 0.00, 0.00, 270.00);//hintertor


    t1=CreateObject(1500, 1731.61, -1130.11, 23.04, 0.00, 0.00, 0.00); //vordertür
    t2 = CreateObject(1500, 1735.13, -1101.33, 23.04, 0.00, 0.00, 180.00); //hintertür

    Würde ich auch mal machen an deiner Stelle ;)