Undefined fehler obwohl es defined ist ?!

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 ...


    ich hab ein paar moveobjects gemacht aber jz steht da undefined symbol ... hier die zeilen.
    New's

    //yakuza
    new yakuzagarage;
    new yakuzagaragea;
    new yakuzagarageb;
    new yakuzagaragec;
    new yakuzagarage1;
    new yakuzagarage2;
    new yakuzagarage3;
    new yakuzagarage4;
    new yakuzagarage5;
    new yakuzagarage6;
    new yakuzagarage7;
    new yakuzagarage8;


    Create Objects

    yakuzagarage1 = F_CreateObject(2957,977.72991943359,-2153.1943359375,12.90135383606,0,0,80);
    yakuzagarage2 = F_CreateObject(2957,978.16333007813,-2150.716796875,12.90135383606,0,0,80);
    yakuzagarage3 = F_CreateObject(2957,978.95092773438,-2145.8278808594,12.90135383606,0,0,80);
    yakuzagarage4 = F_CreateObject(2957,979.40362548828,-2143.3386230469,12.90135383606,0,0,80);
    yakuzagarage5 = F_CreateObject(2957,980.25109863281,-2138.4931640625,12.90135383606,0,0,80);
    yakuzagarage6 = F_CreateObject(2957,980.67694091797,-2135.9675292969,12.90135383606,0,0,80);
    yakuzagarage7 = F_CreateObject(2957,981.60736083984,-2131.1655273438,12.90135383606,0,0,80);
    yakuzagarage8 = F_CreateObject(2957,982.04907226563,-2128.6564941406,12.90135383606,0,0,80);

    MoveObjects

    if (IsPlayerInRangeOfPoint(playerid,2.0,977.72991943359,-2153.1943359375,10.90135383606))
    {
    if(SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)
    {
    if(Yakuzagarage == 0)
    {
    MoveObject(Yakuzagarage1, 977.72991943359,-2153.1943359375,12.90135383606, 2);
    MoveObject(Yakuzagarage2, 978.16333007813,-2150.716796875,12.90135383606, 2);
    Yakuzagarage = 1;
    }
    else if(Yakuzagarage == 1)
    {
    MoveObject(Yakuzagarage1, 977.72991943359,-2153.1943359375,9.90135383606, 2);
    MoveObject(Yakuzagarage2, 977.72991943359,-2153.1943359375,9.90135383606, 2);
    Yakuzagarage = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Du bist nicht bei der Yakuza!");
    }
    }
    if (IsPlayerInRangeOfPoint(playerid,2.0,978.95092773438,-2145.8278808594,10.90135383606))
    {
    if(SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)
    {
    if(yakuzagaragea == 0)
    {
    MoveObject(Yakuzagarage3, 978.95092773438,-2145.8278808594,12.90135383606, 2);
    MoveObject(Yakuzagarage4, 979.40362548828,-2143.3386230469,12.90135383606, 2);
    Yakuzagaragea = 1;
    }
    else if(yakuzagaragea == 1)
    {
    MoveObject(Yakuzagarage3, 978.95092773438,-2145.8278808594,9.90135383606, 2);
    MoveObject(Yakuzagarage4, 979.40362548828,-2143.3386230469,9.90135383606, 2);
    Yakuzagaragea = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Du bist nicht bei der Yakuza!");
    }
    }
    if (IsPlayerInRangeOfPoint(playerid,2.0,980.25109863281,-2138.4931640625,10.90135383606))
    {
    if(SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)
    {
    if(yakuzagarageb == 0)
    {
    MoveObject(Yakuzagarage5, 980.25109863281,-2138.4931640625,12.90135383606, 2);
    MoveObject(Yakuzagarage6, 980.67694091797,-2135.9675292969,12.90135383606, 2);
    Yakuzagarageb = 1;
    }
    else if(yakuzagaragea == 1)
    {
    MoveObject(Yakuzagarage5, 980.25109863281,-2138.4931640625,9.90135383606, 2);
    MoveObject(Yakuzagarage6, 980.67694091797,-2135.9675292969,9.90135383606, 2);
    Yakuzagarageb = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Du bist nicht bei der Yakuza!");
    }
    }
    if (IsPlayerInRangeOfPoint(playerid,2.0,981.60736083984,-2131.1655273438,10.90135383606))
    {
    if(SpielerInfo[playerid][sMember] == 6 || SpielerInfo[playerid][sLeader] == 6)
    {
    if(yakuzagaragec == 0)
    {
    MoveObject(Yakuzagarage7, 981.60736083984,-2131.1655273438,12.90135383606, 2);
    MoveObject(Yakuzagarage8, 982.04907226563,-2128.6564941406,12.90135383606, 2);
    Yakuzagaragec = 1;
    }
    else if(yakuzagaragec == 1)
    {
    MoveObject(Yakuzagarage7, 981.60736083984,-2131.1655273438,9.90135383606, 2);
    MoveObject(Yakuzagarage8, 982.04907226563,-2128.6564941406,9.90135383606, 2);
    Yakuzagaragec = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE,"Du bist nicht bei der Yakuza!");
    }
    }


    und hier meine errors



    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34971) : error 017: undefined symbol "Yakuzagarage"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34973) : error 017: undefined symbol "Yakuzagarage1"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34974) : error 017: undefined symbol "Yakuzagarage2"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34975) : error 017: undefined symbol "Yakuzagarage"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34975) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34977) : error 017: undefined symbol "Yakuzagarage"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34979) : error 017: undefined symbol "Yakuzagarage1"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34980) : error 017: undefined symbol "Yakuzagarage2"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34981) : error 017: undefined symbol "Yakuzagarage"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34981) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34995) : error 017: undefined symbol "Yakuzagarage3"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34996) : error 017: undefined symbol "Yakuzagarage4"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34997) : error 017: undefined symbol "Yakuzagaragea"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(34997) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35001) : error 017: undefined symbol "Yakuzagarage3"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35002) : error 017: undefined symbol "Yakuzagarage4"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35003) : error 017: undefined symbol "Yakuzagaragea"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35003) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35017) : error 017: undefined symbol "Yakuzagarage5"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35018) : error 017: undefined symbol "Yakuzagarage6"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35019) : error 017: undefined symbol "Yakuzagarageb"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35019) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35023) : error 017: undefined symbol "Yakuzagarage5"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35024) : error 017: undefined symbol "Yakuzagarage6"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35025) : error 017: undefined symbol "Yakuzagarageb"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35025) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35039) : error 017: undefined symbol "Yakuzagarage7"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35040) : error 017: undefined symbol "Yakuzagarage8"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35041) : error 017: undefined symbol "Yakuzagaragec"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35041) : warning 215: expression has no effect
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35045) : error 017: undefined symbol "Yakuzagarage7"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35046) : error 017: undefined symbol "Yakuzagarage8"
    C:\Users\Sebbi\Desktop\samp03 - Kopie - Kopie\gamemodes\GFR-2.pwn(35047) : error 017: undefined symbol "Yakuzagaragec"


    Danke im vorraus :)

  • Ein kleiner tipp am rande:


    mach das am besten so


    new Yakuzator[8];



    Yakuzator[0] = CreateObject..
    Yakuzator[1] = CreateObject..
    Yakuzator[2] = CreateObject..
    Yakuzator[3] = CreateObject..
    Yakuzator[4] = CreateObject..
    Yakuzator[5] = CreateObject..
    Yakuzator[6] = CreateObject..
    Yakuzator[7] = CreateObject..


    zum bewegen


    MoveObject(Yakuzator[0],x,y,z,speed);


    ich persöhnlich finde es einfacher.


    LG: Qini