Fehler im Script

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
  • Hallo Community habe hier ein problem



    undzwar das hier
    new FactionBuylist[][fBuylist] ={
    {405,311.5587,-1809.4019,4.3394,0.4307,50000}, // Sentinal
    {411,314.7912,-1809.7482,4.1969,0.6235,50000}, // Infernus
    {412,317.9757,-1809.7987,4.3057,359.7154,50000}, // Voodoo
    {415,321.2232,-1809.7538,4.2428,358.6720,50000}, // Cheetah
    {429,327.7953,-1809.6830,4.1553,358.6708,50000}, // Banshee
    {439,330.9087,-1809.8531,4.3694,0.3104,50000},// Stallion
    {445,334.1863,-1809.9110,4.3532,359.8896,50000}, // Admiral
    {451,337.3522,-1810.0112,4.1961,359.9379,50000}, // Turismo
    {475,346.8968,-1809.8660,4.3106,1.0387,50000}, // Sabre
    {477,350.3359,-1809.8031,4.2649,358.7115,50000}, // ZR-350
    {479,353.4312,-1809.7145,4.3135,358.5456,50000}, // Regina
    {480,356.7751,-1809.7437,4.2925,359.1791,50000},// Comet
    {506,311.6965,-1789.0367,4.2775,179.3222,50000},// Super GT
    {522,315.0852,-1787.9764,4.2041,180.3209,50000}, // NRG
    {541,318.1741,-1788.7317,4.3038,179.2764,50000},// Bullet
    {559,321.4809,-1788.6581,4.3889,179.6865,50000}, // Jester
    {562,324.7844,-1788.7953,4.4454,179.5516,50000}, // Elegy
    {561,328.0639,-1789.1740,4.6501,179.3546,50000}, // Stratum
    {565,331.4161,-1788.7366,4.5075,181.2386,50000}, // Flash
    {587,334.3581,-1789.3591,4.6165,179.8554,50000}, // Euros
    {589,337.6046,-1788.9492,4.5795,180.8319,50000}, // Club
    {560,324.5808,-1810.1571,4.1698,359.8678,50000}, // Sultan
    {487,309.9238,-1800.4260,4.6735,181.1788,50000}, // Maverik
    }


    und das sind die Fehler


    C:\Dokumente und Einstellungen\Erdal\Desktop\German Next Era Life - v2.5\gamemodes\GNE.pwn(292) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Erdal\Desktop\German Next Era Life - v2.5\gamemodes\GNE.pwn(292 -- 293) : error 008: must be a constant expression; assumed zero
    C:\Dokumente und Einstellungen\Erdal\Desktop\German Next Era Life - v2.5\gamemodes\GNE.pwn(6294) : warning 225: unreachable code
    C:\Dokumente und Einstellungen\Erdal\Desktop\German Next Era Life - v2.5\gamemodes\GNE.pwn(54818) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    2 Mal editiert, zuletzt von Master147 ()

  • new FactionBuylist[][fBuylist] ={
    {405,311.5587,-1809.4019,4.3394,0.4307,50000}, // Sentinal
    {411,314.7912,-1809.7482,4.1969,0.6235,50000}, // Infernus
    {412,317.9757,-1809.7987,4.3057,359.7154,50000}, // Voodoo
    {415,321.2232,-1809.7538,4.2428,358.6720,50000}, // Cheetah
    {429,327.7953,-1809.6830,4.1553,358.6708,50000}, // Banshee
    {439,330.9087,-1809.8531,4.3694,0.3104,50000},// Stallion
    {445,334.1863,-1809.9110,4.3532,359.8896,50000}, // Admiral
    {451,337.3522,-1810.0112,4.1961,359.9379,50000}, // Turismo
    {475,346.8968,-1809.8660,4.3106,1.0387,50000}, // Sabre
    {477,350.3359,-1809.8031,4.2649,358.7115,50000}, // ZR-350
    {479,353.4312,-1809.7145,4.3135,358.5456,50000}, // Regina
    {480,356.7751,-1809.7437,4.2925,359.1791,50000},// Comet
    {506,311.6965,-1789.0367,4.2775,179.3222,50000},// Super GT
    {522,315.0852,-1787.9764,4.2041,180.3209,50000}, // NRG
    {541,318.1741,-1788.7317,4.3038,179.2764,50000},// Bullet
    {559,321.4809,-1788.6581,4.3889,179.6865,50000}, // Jester
    {562,324.7844,-1788.7953,4.4454,179.5516,50000}, // Elegy
    {561,328.0639,-1789.1740,4.6501,179.3546,50000}, // Stratum
    {565,331.4161,-1788.7366,4.5075,181.2386,50000}, // Flash
    {587,334.3581,-1789.3591,4.6165,179.8554,50000}, // Euros
    {589,337.6046,-1788.9492,4.5795,180.8319,50000}, // Club
    {560,324.5808,-1810.1571,4.1698,359.8678,50000}, // Sultan
    {487,309.9238,-1800.4260,4.6735,181.1788,50000} // Maverik// hier daf kein , sein
    }

  • und dann habe ich denn hier:


    C:\Dokumente und Einstellungen\Erdal\Desktop\SA-MP\Spark 0.9.2018\templates\German Next Era Life - v2.5\gamemodes\GNE.pwn(293) : error 001: expected token: ";", but found "new"
    C:\Dokumente und Einstellungen\Erdal\Desktop\SA-MP\Spark 0.9.2018\templates\German Next Era Life - v2.5\gamemodes\GNE.pwn(6293) : warning 225: unreachable code
    C:\Dokumente und Einstellungen\Erdal\Desktop\SA-MP\Spark 0.9.2018\templates\German Next Era Life - v2.5\gamemodes\GNE.pwn(54817) : warning 225: unreachable code
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    new Float:FactionBuySpawn[4]={356.7656,-1794.3485,4.9582,273.9034};

  • Kenne ich :) Versuch ma das



    new Float:FactionBuySpawn[4]={356.7656,-1794.3485,4.9582,273.9034};
    enum fCar{
    fCarid,
    fVehid,
    Float:fPos[4],
    fCol[2],
    fFaction[5],
    fTuning[14],
    fPrice,
    #if defined FACTION_CARS_LOCKABLE
    bool:fLock
    #endif
    };