Wenn ich Fahrzeuge spawnen will kommt da zwar 1 Error, doch wenn ich es loesche kommt der error wieder o_O

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
  • Also ich selber weiss nicht was daran falsch ist, da steht zwar dass eine Klammer fehlt aber da fehlt keine :( Und wenn ich des dann loesche kommt der error wieder warum ist das so? o_O weiss jemand was ich falsch gemacht habe?



    new BallasCar[7];
    new GrooveCar[15];


    //new GrooveCar[0] = AddStaticVehicle(522,2506.0669,-1743.7526,13.0620,356.0646,86,86); // Grove Street
    GrooveCar[1] = AddStaticVehicle(579,2484.5884,-1755.1102,13.4804,3.7055,86,86); // Grove Street
    GrooveCar[2] = AddStaticVehicle(579,2484.7947,-1754.6130,13.4767,358.5887,86,86); // Grove Street
    GrooveCar[3] = AddStaticVehicle(560,2489.6550,-1755.2129,13.2294,359.4737,86,86); // Grove Street
    GrooveCar[4] = AddStaticVehicle(560,2490.4724,-1754.8311,13.2067,359.7295,86,86); // Grove Street
    GrooveCar[5] = AddStaticVehicle(560,2494.5706,-1755.0374,13.2168,0.0539,86,86); // Grove Street
    GrooveCar[6] = AddStaticVehicle(424,2502.3953,-1745.7700,13.1923,90.4451,86,86); // Grove Street
    GrooveCar[7] = AddStaticVehicle(522,2503.0591,-1741.5037,13.1193,86.9154,86,86); // Grove Street
    GrooveCar[8] = AddStaticVehicle(411,2489.1597,-1741.0542,13.2694,91.6841,86,86); // Grove Street
    GrooveCar[9] = AddStaticVehicle(468,2476.9001,-1755.9961,13.2156,5.5541,86,86); // Grove Street
    GrooveCar[10]= AddStaticVehicle(468,2478.3206,-1756.0050,13.2040,4.3641,86,86); // Grove Street
    GrooveCar[11]= AddStaticVehicle(559,2480.8201,-1754.9912,13.2062,356.0418,86,86); // Grove Street
    GrooveCar[12]= AddStaticVehicle(567,2498.2554,-1755.0765,13.3198,0.2178,86,86); // Grove Street
    GrooveCar[13]= AddStaticVehicle(567,2503.1357,-1754.9265,13.2738,8.7884,86,86); // Grove Street
    GrooveCar[14]= AddStaticVehicle(565,2502.7971,-1749.4114,13.0320,92.1775,86,86); // Grove Street


    new LCNCar[10];


    was ist hier denn falsch? :S


    Hier der Error: C:\Users\Pake.LAPTOK.000\Desktop\Eazy Los Santos\gamemodes\LosAngelesReallife0.3b.pwn(534) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

  • Moin unter welchen Callback haste die.




    new BallasCar[7];
    new GrooveCar[15];
    new LCNCar[10];

    das ganz nach oben




    GrooveCar[0] = AddStaticVehicle(522,2506.0669,-1743.7526,13.0620,356.0646,86,86); // Grove Street
    GrooveCar[1] = AddStaticVehicle(579,2484.5884,-1755.1102,13.4804,3.7055,86,86); // Grove Street
    GrooveCar[2] = AddStaticVehicle(579,2484.7947,-1754.6130,13.4767,358.5887,86,86); // Grove Street
    GrooveCar[3] = AddStaticVehicle(560,2489.6550,-1755.2129,13.2294,359.4737,86,86); // Grove Street
    GrooveCar[4] = AddStaticVehicle(560,2490.4724,-1754.8311,13.2067,359.7295,86,86); // Grove Street
    GrooveCar[5] = AddStaticVehicle(560,2494.5706,-1755.0374,13.2168,0.0539,86,86); // Grove Street
    GrooveCar[6] = AddStaticVehicle(424,2502.3953,-1745.7700,13.1923,90.4451,86,86); // Grove Street
    GrooveCar[7] = AddStaticVehicle(522,2503.0591,-1741.5037,13.1193,86.9154,86,86); // Grove Street
    GrooveCar[8] = AddStaticVehicle(411,2489.1597,-1741.0542,13.2694,91.6841,86,86); // Grove Street
    GrooveCar[9] = AddStaticVehicle(468,2476.9001,-1755.9961,13.2156,5.5541,86,86); // Grove Street
    GrooveCar[10]= AddStaticVehicle(468,2478.3206,-1756.0050,13.2040,4.3641,86,86); // Grove Street
    GrooveCar[11]= AddStaticVehicle(559,2480.8201,-1754.9912,13.2062,356.0418,86,86); // Grove Street
    GrooveCar[12]= AddStaticVehicle(567,2498.2554,-1755.0765,13.3198,0.2178,86,86); // Grove Street
    GrooveCar[13]= AddStaticVehicle(567,2503.1357,-1754.9265,13.2738,8.7884,86,86); // Grove Street
    GrooveCar[14]= AddStaticVehicle(565,2502.7971,-1749.4114,13.0320,92.1775,86,86); // Grove Street



    das unter OnGameModeinit


    MFG RFT

    RFT

  • //In den Script Header
    new BallasCar[14];
    new GrooveCar[15];
    new LCNCar[10];


    // OnGameModeinit
    //new GrooveCar[0] = AddStaticVehicle(522,2506.0669,-1743.7526,13.0620,356.0646,86,86); // Grove Street
    GrooveCar[0] = AddStaticVehicle(579,2484.5884,-1755.1102,13.4804,3.7055,86,86); // Grove Street
    GrooveCar[1] = AddStaticVehicle(579,2484.7947,-1754.6130,13.4767,358.5887,86,86); // Grove Street
    GrooveCar[2] = AddStaticVehicle(560,2489.6550,-1755.2129,13.2294,359.4737,86,86); // Grove Street
    GrooveCar[3]= AddStaticVehicle(560,2490.4724,-1754.8311,13.2067,359.7295,86,86); // Grove Street
    GrooveCar[4] = AddStaticVehicle(560,2494.5706,-1755.0374,13.2168,0.0539,86,86); // Grove Street
    GrooveCar[5] = AddStaticVehicle(424,2502.3953,-1745.7700,13.1923,90.4451,86,86); // Grove Street
    GrooveCar[6] = AddStaticVehicle(522,2503.0591,-1741.5037,13.1193,86.9154,86,86); // Grove Street
    GrooveCar[7] = AddStaticVehicle(411,2489.1597,-1741.0542,13.2694,91.6841,86,86); // Grove Street
    GrooveCar[8] = AddStaticVehicle(468,2476.9001,-1755.9961,13.2156,5.5541,86,86); // Grove Street
    GrooveCar[9]= AddStaticVehicle(468,2478.3206,-1756.0050,13.2040,4.3641,86,86); // Grove Street
    GrooveCar[10]= AddStaticVehicle(559,2480.8201,-1754.9912,13.2062,356.0418,86,86); // Grove Street
    GrooveCar[11]= AddStaticVehicle(567,2498.2554,-1755.0765,13.3198,0.2178,86,86); // Grove Street
    GrooveCar[12]= AddStaticVehicle(567,2503.1357,-1754.9265,13.2738,8.7884,86,86); // Grove Street
    GrooveCar[13]= AddStaticVehicle(565,2502.7971,-1749.4114,13.0320,92.1775,86,86); // Grove Street


    //Edit: RFT war schneller X( ^^

  • public OnGameModeInit()
    {
    new GrooveCar[15];


    //new GrooveCar[0] = AddStaticVehicle(522,2506.0669,-1743.7526,13.0620,356.0646,86,86); // Grove Street
    GrooveCar[0] = AddStaticVehicle(579,2484.5884,-1755.1102,13.4804,3.7055,86,86); // Grove Street
    GrooveCar[1] = AddStaticVehicle(579,2484.7947,-1754.6130,13.4767,358.5887,86,86); // Grove Street
    GrooveCar[2] = AddStaticVehicle(560,2489.6550,-1755.2129,13.2294,359.4737,86,86); // Grove Street
    GrooveCar[3]= AddStaticVehicle(560,2490.4724,-1754.8311,13.2067,359.7295,86,86); // Grove Street
    GrooveCar[4] = AddStaticVehicle(560,2494.5706,-1755.0374,13.2168,0.0539,86,86); // Grove Street
    GrooveCar[5] = AddStaticVehicle(424,2502.3953,-1745.7700,13.1923,90.4451,86,86); // Grove Street
    GrooveCar[6] = AddStaticVehicle(522,2503.0591,-1741.5037,13.1193,86.9154,86,86); // Grove Street
    GrooveCar[7] = AddStaticVehicle(411,2489.1597,-1741.0542,13.2694,91.6841,86,86); // Grove Street
    GrooveCar[8] = AddStaticVehicle(468,2476.9001,-1755.9961,13.2156,5.5541,86,86); // Grove Street
    GrooveCar[9]= AddStaticVehicle(468,2478.3206,-1756.0050,13.2040,4.3641,86,86); // Grove Street
    GrooveCar[10]= AddStaticVehicle(559,2480.8201,-1754.9912,13.2062,356.0418,86,86); // Grove Street
    GrooveCar[11]= AddStaticVehicle(567,2498.2554,-1755.0765,13.3198,0.2178,86,86); // Grove Street
    GrooveCar[12]= AddStaticVehicle(567,2503.1357,-1754.9265,13.2738,8.7884,86,86); // Grove Street
    GrooveCar[13]= AddStaticVehicle(565,2502.7971,-1749.4114,13.0320,92.1775,86,86); // Grove Street
    So richtig? :(
    kommt aber der gleiche error o_O

  • Nein, gaaanz oben im Script sollten einige 'new's sein. Meistens unter oder über den #defines.
    Suche ganz oben nach new und irgendwas anderes dahinter.
    Und unter den letzten new packst du dann new GrooveCar[15];
    Und unter public OnGameModeInit() packst du dann die GroveCar's.


  • Guck mal oben @ DarthXela :)

  • Habs hinbekommen nochmal danke fuer euere hilfe, schade aber ist dass die fahrzeuge fuer alle offen sind... kann ich des i.wie einstellen dass sie nur anschliesslich fuer Grove Street sind?

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