Problem mit Fraktionsautohaus

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 liebe Breadfisch comunity
    Ich habe ein Problem mit den Fraktionsautohaus undzwar saven die autos nicht drin ;(
    Ich bitte um hilfe...

  • Ja ohne die Speicherfunktion oder allgemein Code können wir auch nichts machen!


    MfG



  • #define FACTION_CAR_FILE ("Fraktionsautos.cfg")//Datei wo die gesamten Fraktionsfahrzeuge gespeichert werden GDRlen!
    #define MAX_FACTION_CARS (900)//Die Maximale anzahl von Fraktionsfahrzeugen!
    #define NEEDED_ADMINLEVEL (2000)//Das benötigte Adminlevel um Fraktionfahrzeuge zu fahren, ab/-aufschließen, umzuparken, entfernen, erstellen.
    #define MAX_FACTIONS (30)//Die Maximale anzahl von Fraktionen aus deinem Script!
    #define MAX_BUY (40)//Die Maximale anzahl von Fahrzeugen die eine Fraktion kaufen darf!


    #define FACTION_CARS_TUNEABLE



    #if defined FACTION_CARS_LOCKABLE
    #include
    #endif


    #define FACTION_COL_GREY (0xAFAFAFAA)
    #define FACTION_COL_YELLOW (0xFFFF00FF)
    #define DIALOG_FACTION_CAR_BUY (37)



    forward LoadFactionCars();
    forward SaveFactionCars(bool:destroy);
    forward LockFactionCarDoors();
    forward DestroyAndCreateFactionCar(fc);
    forward RemoveComponent(vehicleid,componentid);
    forward ChangePaintjob(vehicleid,paintjobid);
    forward ChangeColor(vehicleid,color1,color2);
    forward RespawnFactionBuylist();


    new fCarName[][]={
    "Landstalker","Bravura","Buffalo","Linerunner","Perrenial","Sentinel",
    "Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus",
    "Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam",
    "Esperanto","Taxi","Washington","Bobcat","Whoopee","BF Injection",
    "Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus",
    "Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie",
    "Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral",
    "Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
    "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
    "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
    "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
    "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
    "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
    "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
    "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
    "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
    "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
    "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
    "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
    "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
    "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
    "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
    "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
    "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratum",
    "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
    "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
    "Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400",
    "News Van","Tug","Trailer","Emperor","Wayfarer","Euros","Hotdog","Club",
    "Freight Box","Trailer","Andromada","Dodo","RC Cam","Launch","Police Car",
    "Police Car","Police Car","Police Ranger","Picador","S.W.A.T","Alpha",
    "Phoenix","Glendale Shit","Sadler Shit","Luggage","Luggage","Stairs","Boxville",
    "Tiller","Utility Trailer"
    };
    enum fBuylist{
    fbVehid,
    Float:fbX,
    Float:fbY,
    Float:fbZ,
    Float:fbA,
    fbPrice,
    fbCarid,
    Text3D:fbLabel
    };
    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


    };
    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
    };
    new FactionCars[MAX_FACTION_CARS][fCar];
    #if defined FACTION_CARS_LOCKABLE
    new FactionCarsTimer;
    #endif
    new BuylistRespawner;
    new SaveFactionCarsTimer;
    new LastRespawned[MAX_FACTIONS];



    In Der Fraktionsautos.cfg sollen sie saven

    Einmal editiert, zuletzt von Johny_Crack ()