Habe Errors beim compilen. Bitte um 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
  • Guten Mittag,
    ich habe beim Compilen eines Scriptes diese Errors bekommen:


    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15707) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15708) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15709) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15710) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15711) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15712) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15713) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15714) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15715) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15716) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15717) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15718) : error 032: array index out of bounds (variable "ArmyVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15730) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15731) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15732) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15733) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15734) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15735) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15736) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15737) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15747) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15748) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15749) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15750) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15751) : error 032: array index out of bounds (variable "oAmtVehs")
    C:\Users\Dani\Desktop\GTA SAMP\Scripts\City of Raluno Script\gamemodes\Raluno22.pwn(15752) : error 032: array index out of bounds (variable "oAmtVehs")


    ich weis jetzt gar nicht mehr weiter :/
    kann mir da jemand helfen ?
    Wäre wirklich sehr nett
    Danke im vorraus


    MfG KayOne1

  • Du musst uns auch schon die Zeilen mit den Errors geben, sonst können wir nicht wirklich helfen.
    Der Error besagt, dass du ein Array z.B Benutzt, jedoch mit diesem auf einen nicht existierenden Index zugreifst.


    LG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.


  • SetVehicleNumberPlate(ArmyVehs[1],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[2],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[3],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[4],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[5],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[6],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[7],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[8],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[9],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[10],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[11],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[12],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[13],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[14],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[15],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[16],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[17],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[18],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[19],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[20],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[21],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[22],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[23],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[24],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[25],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[26],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[27],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[28],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[29],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[30],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[31],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[32],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[33],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[34],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[35],"U.S.Army");
    SetVehicleNumberPlate(ArmyVehs[36],"U.S.Army");





    oAmtVehs[1] = AddStaticVehicleEx(525,892.8699,-1207.4315,16.8523,178.7146,3,3,-1); // O-amt Abschlepper
    oAmtVehs[2] = AddStaticVehicleEx(525,884.6513,-1207.4739,16.8402,176.4355,3,3,-1); // O-amt Abschlepper
    oAmtVehs[3] = AddStaticVehicleEx(525,875.2018,-1207.5872,16.8622,177.3748,3,3,-1); // O-amt Abschlepper
    oAmtVehs[4] = AddStaticVehicleEx(525,901.6936,-1207.0387,16.8542,181.0052,3,3,-1); // O-amt Abschlepper
    oAmtVehs[5] = AddStaticVehicleEx(525,867.3196,-1207.4540,16.8585,178.8739,3,3,-1); // O-amt Abschlepper
    oAmtVehs[6] = AddStaticVehicleEx(469,894.7902,-1283.8268,23.0978,359.1290,3,3,-1); // o-amt heli
    oAmtVehs[7] = AddStaticVehicleEx(417,879.5281,-1283.7769,23.1751,355.0039,3,3,-1); // o-amt heli
    oAmtVehs[10] = AddStaticVehicleEx(561,926.6434,-1180.8663,16.7810,79.1274,3,3,-1); // o-amt kombi
    oAmtVehs[11] = AddStaticVehicleEx(561,926.6740,-1177.0825,16.7804,82.0636,3,3,-1); // o-amt kombi
    oAmtVehs[12] = AddStaticVehicleEx(561,926.9283,-1173.4576,16.7812,82.3755,3,3,-1); // o-amt kombi
    oAmtVehs[13] = AddStaticVehicleEx(579,918.1020,-1166.5773,16.9606,184.8403,3,3,-1); // o-amt jeep
    oAmtVehs[14] = AddStaticVehicleEx(579,914.1715,-1166.2671,16.8911,183.1006,3,3,-1); // o-amt jeep
    oAmtVehs[15] = AddStaticVehicleEx(443,855.7622,-1286.2220,14.5712,269.6153,3,3,-1); // o-amt
    oAmtVehs[16] = AddStaticVehicleEx(443,855.7868,-1294.4586,14.2801,265.9629,3,3,-1); // o-amt
    oAmtVehs[17] = AddStaticVehicleEx(443,855.3879,-1302.7372,14.2751,271.7533,3,3,-1); // o-amt
    SetVehicleNumberPlate(oAmtVehs[1],"Oamt 1");
    SetVehicleNumberPlate(oAmtVehs[2],"Oamt 2");
    SetVehicleNumberPlate(oAmtVehs[3],"Oamt 3");
    SetVehicleNumberPlate(oAmtVehs[4],"Oamt 4");
    SetVehicleNumberPlate(oAmtVehs[5],"Oamt 5");
    SetVehicleNumberPlate(oAmtVehs[6],"Oamt 6");
    SetVehicleNumberPlate(oAmtVehs[7],"Oamt 7");
    SetVehicleNumberPlate(oAmtVehs[8],"Oamt 8");
    SetVehicleNumberPlate(oAmtVehs[9],"Oamt 9");
    SetVehicleNumberPlate(oAmtVehs[10],"Oamt 10");
    SetVehicleNumberPlate(oAmtVehs[11],"Oamt 11");
    SetVehicleNumberPlate(oAmtVehs[12],"Oamt 12");
    SetVehicleNumberPlate(oAmtVehs[13],"Oamt 13");
    SetVehicleNumberPlate(oAmtVehs[14],"Oamt 14");
    SetVehicleNumberPlate(oAmtVehs[15],"Oamt 15");
    SetVehicleNumberPlate(oAmtVehs[16],"Oamt 16");
    SetVehicleNumberPlate(oAmtVehs[17],"Oamt 17");


    NewsVehs[0] = AddStaticVehicleEx(582,1667.87219238,-1694.86572266,15.68627167,88.72509766,99,1,-1); //Newsvan
    NewsVehs[1] = AddStaticVehicleEx(582,1667.73779297,-1699.59436035,15.76437473,88.08996582,99,1,-1); //Newsvan
    NewsVehs[2] = AddStaticVehicleEx(582,1667.60681152,-1704.93151855,15.76437473,86.38500977,99,1,-1); //Newsvan
    NewsVehs[3] = AddStaticVehicleEx(582,1667.51721191,-1710.20227051,15.76437473,89.79504395,99,1,-1); //Newsvan
    NewsVehs[4] = AddStaticVehicleEx(586,1646.14538574,-1707.74316406,15.20637512,277.84997559,99,1,-1); //Wayfarer
    NewsVehs[5] = AddStaticVehicleEx(586,1645.92736816,-1705.13037109,15.20637512,276.41003418,99,1,-1); //Wayfarer
    NewsVehs[6] = AddStaticVehicleEx(586,1645.76745605,-1702.38928223,15.20637512,276.11499023,99,1,-1); //Wayfarer
    NewsVehs[7] = AddStaticVehicleEx(488,1654.61254883,-1638.05859375,84.04624939,180.86492920,99,1,-1); //News Chopper
    SetVehicleNumberPlate(NewsVehs[1],"News 1");
    SetVehicleNumberPlate(NewsVehs[2],"News 2");
    SetVehicleNumberPlate(NewsVehs[3],"News 3");
    SetVehicleNumberPlate(NewsVehs[4],"News 4");
    SetVehicleNumberPlate(NewsVehs[5],"News 5");
    SetVehicleNumberPlate(NewsVehs[6],"News 6");
    SetVehicleNumberPlate(NewsVehs[7],"News 7");

    hier sind die Zeilen

  • ja hier
    das ist er doch oder ?!

  • Nein den Code den Andrzejxy' meint der Steht ziemlich am Anfang dort wo du alles definierst


    mfg Schokodonut


    Schaut ca so aus new ArmyVehs[50];//Da steht die Zahl der Fahrzeuge mit 0 muss man beginnen, mit 50 sollte nichts falsch gehen

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen