Fehler im Tanksystem | Anzeigefehler im Haussystem

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 Leutz,
    Habe beim WoS Script 2 Fehler :
    Tanksystem :

    • /tanken hört nicht auf.
    • Wenn ich ein Fahrzeug kaufe, sind nach ein Paar sekunden nicht mehr 100 sondern 45 L im tank!


    Haussystem :

    • Zeigt den Bestzer nicht an!


    Code Tanken :
    /tanken Befehl

    Spoiler anzeigen
    if(strcmp(cmd, "/tanken", true) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,10,1004.0812,-939.4362,42.1797))
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsAtGasStation(playerid))
    {
    if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
    {
    SendClientMessage(playerid,COLOR_YELLOW," Du kannst kein Fahrrad betanken!");
    }
    SetTimer("Fillup",RefuelWait,0);
    Refueling[playerid] = 1;
    FreezePlayer(playerid);
    SendClientMessage(playerid,COLOR_WHITE," Dein Fahrzeug wird betankt, Bitte warten....");
    }
    return 1;
    }
    }
    }
    #define RefuelWait 5000
    #define SPRITPREIS 2

    Spoiler anzeigen
    #define CAR_AMOUNT 700 //Change to Your Vehicle Amount
    new Gas[CAR_AMOUNT];

    Spoiler anzeigen
    new Refueling[MAX_PLAYERS];

    Spoiler anzeigen
    #define RefuelWait 5000


    Code Haus :

    Spoiler anzeigen
    //=========================================================[Haus System by K3VIN aka Rapture]=====================================================//
    if(!strcmp(cmdtext, "/hauskaufen", true))
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    if(!HouseInfo[i][hOwned])
    {
    if(GetPlayerMoney(playerid) < HouseInfo[i][hPrice])
    {
    SendClientMessage(playerid, Grey, "Du hast nicht genug Geld!");
    return 1;
    }
    if(PlayerInfo[playerid][pHouseKey] != MAX_HOUSES+1)
    {
    SendClientMessage(playerid, Grey, "Du besitzt bereits ein Haus!");
    return 1;
    }
    format(HouseInfo[i][hOwner], 24, sendername);
    HouseInfo[i][hOwned] = 1;
    UpdateHouseLabel(i);
    PlayerInfo[playerid][pHouseKey] = i;
    GivePlayerMoney(playerid, -HouseInfo[i][hPrice]);
    SendClientMessage(playerid, Grey, "Glückwunsch zum Kauf der Immobilie!");
    SaveHouses();
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmd, "/createhouse", true))
    {
    if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "/CreateHouse [Preis] [Interior Typ ( /interiors )]");
    new housepreis = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "/CreateHouse [Preis] [Interior Typ ( /interiors )]");
    new inttype = strval(tmp);
    if(inttype < 1 || inttype > sizeof(Interiors)) return SendClientMessage(playerid, Grey, "Ungültige Interior Typ ID! /interiors");
    inttype -= 1;
    new i = GetHouseID(); if(i == -1) return SendClientMessage(playerid, Grey, "Es kann kein weiters Haus mehr erstellt werden! ( MAX_HOUSES erhöhen )");
    format(string, sizeof string, "/Houses/%d.ini", i);
    dini_Create(string);
    HouseInfo[i][hEntrx] = GetX(playerid);
    HouseInfo[i][hEntry] = GetY(playerid);
    HouseInfo[i][hEntrz] = GetZ(playerid);
    HouseInfo[i][hInt] = Interiors[inttype][interiorid];
    HouseInfo[i][hIntx] = Interiors[inttype][intpx];
    HouseInfo[i][hInty] = Interiors[inttype][intpy];
    HouseInfo[i][hIntz] = Interiors[inttype][intpz];
    HouseInfo[i][hIntid] = inttype;
    HouseInfo[i][hPrice] = housepreis;
    HouseInfo[i][hRentable] = 0;
    HouseInfo[i][hRent] = 50;
    HouseInfo[i][hOwned] = 0;
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    format(HouseInfo[i][hDescr], 50, "%s", Interiors[inttype][description]);
    format(string, sizeof string, "%s\nZum Verkauf\nPreis: %d€", HouseInfo[i][hDescr], HouseInfo[i][hPrice]);
    HouseInfo[i][hLabel] = CreateDynamic3DTextLabel(string, COLOR_HOUSELABEL, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz], 20);
    HouseInfo[i][hPick] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]);
    SendClientMessage(playerid, Grey, "Haus erstellt!");
    SaveHouse(i);
    return 1;
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/hausverkaufen", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    GivePlayerMoney(playerid, HouseInfo[i][hPrice]/4);
    HouseInfo[i][hOwned] = 0;
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    DestroyDynamicPickup(HouseInfo[i][hPick]);
    HouseInfo[i][hPick] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]);
    SendClientMessage(playerid, Grey, "Du hast dein Haus verkauft und erhälst 1/4 des Kaufpreises zurück!");
    UpdateHouseLabel(i);
    PlayerInfo[playerid][pHouseKey] = MAX_HOUSES+1;
    SaveHouses();
    return 1;
    }
    if(!strcmp(cmdtext, "/asellhouse", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    HouseInfo[i][hOwned] = 0;
    new id = ReturnUser(HouseInfo[i][hOwner]);
    if(IsPlayerConnected(id))
    {
    PlayerInfo[id][pHouseKey] = MAX_HOUSES+1;
    format(string, sizeof string, "Admin %s hat dein Haus verkauft!", pn(playerid));
    SendClientMessage(id, Grey, string);
    }
    else
    {
    format(string, sizeof string, "/Accounts/%s.txt", HouseInfo[i][hOwner]);
    if(INI_Open(string))
    {
    INI_WriteInt("HouseKey", MAX_HOUSES+1);
    INI_Save();
    INI_Close();
    }
    }
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    DestroyDynamicPickup(HouseInfo[i][hPick]);
    HouseInfo[i][hPick] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]);
    SendClientMessage(playerid, Grey, "Haus verkauft und HouseKey des Besitzers zurückgesetzt!");
    UpdateHouseLabel(i);
    SaveHouses();
    return 1;
    }
    }
    }
    else SendClientMessage(playerid, Grey, "Du bist kein Admin oder nicht im Adminmode!");
    return 1;
    }
    if(!strcmp(cmdtext, "/mietstatus", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    if(!HouseInfo[i][hRentable])
    {
    HouseInfo[i][hRentable] = 1;
    UpdateHouseLabel(i);
    SendClientMessage(playerid, Grey, "Andere Spieler können sich nun dein Haus mieten!");
    return 1;
    }
    if(HouseInfo[i][hRentable])
    {
    HouseInfo[i][hRentable] = 0;
    UpdateHouseLabel(i);
    SendClientMessage(playerid, Grey, "Andere Spieler können sich dein Haus nun nicht mehr mieten!");
    return 1;
    }
    return 1;
    }
    if(!strcmp(cmd, "/miete", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /Miete [1-10000]");
    new miete = strval(tmp);
    if(miete < 1 || miete > 10000) return SendClientMessage(playerid, Grey, "Gib einen Betrag zwischen 1 und 10000 an!");
    HouseInfo[i][hRent] = miete;
    format(string, sizeof string, "Deine neue Miete beträgt %d€", miete);
    SendClientMessage(playerid, Grey, string);
    UpdateHouseLabel(i);
    return 1;
    }
    if(!strcmp(cmd, "/rausschmeissen", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /Rausschmeissen [PlayerID/Name] ( Wenn der Spieler nicht online ist, gib den genauen Namen an! )");
    new pid = ReturnUser(tmp);
    if(pid == INVALID_PLAYER_ID && !IsPlayerConnected(pid))
    {
    new path[50], rentkey;
    format(path, sizeof path, "/Accounts/%s.txt", tmp);
    if(!fexist(path)) return SendClientMessage(playerid, Grey, "Dieser Spieler ist nicht online und der Account existiert nicht!");
    if(INI_Open(path))
    {
    rentkey = INI_ReadInt("RentHouseKey");
    if(rentkey != i) return SendClientMessage(playerid, Grey, "Der Spieler mietet sich dein Haus nicht!");
    INI_WriteInt("RentHouseKey", MAX_HOUSES+1);
    INI_Save();
    INI_Close();
    }
    return 1;
    }
    else if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pRentHouseKey] != i) return SendClientMessage(playerid, Grey, "Der Spieler mietet sich dein Haus nicht!");
    PlayerInfo[pid][pRentHouseKey] = MAX_HOUSES+1;
    format(string, sizeof string, "Du hast %s aus dem Haus geschmissen!", pn(pid));
    SendClientMessage(playerid, Grey, string);
    format(string, sizeof string, "Du wurdest von %s aus dem Haus geschmissen!", pn(playerid));SendClientMessage(pid, Grey, string);
    return 1;
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/allerausschmeissen", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    for(new p = 0; p<GetMaxPlayers(); p++)
    {
    if(IsPlayerConnected(p))
    {
    if(PlayerInfo[p][pRentHouseKey] == i)
    {
    PlayerInfo[p][pRentHouseKey] = MAX_HOUSES+1;
    SendClientMessage(p, Grey, "Dein Vermieter hat dich aus der Wohnung geschmissen!");
    }
    }
    }
    SendClientMessage(playerid, Grey, "Alle Bewohner wurden aus der Wohnung geschmissen!");
    return 1;
    }
    if(!strcmp(cmdtext, "/destroyhouse", true))
    {
    if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    DestroyDynamicPickup(HouseInfo[i][hPick]);
    DestroyDynamic3DTextLabel(HouseInfo[i][hLabel]);
    format(string, sizeof string, "/Houses/%d.ini", i);
    fremove(string);
    HouseInfo[i][hEntrx] = 0;
    HouseInfo[i][hEntry] = 0;
    HouseInfo[i][hEntrz] = 0;
    HouseInfo[i][hIntx] = 0;
    HouseInfo[i][hInty] = 0;
    HouseInfo[i][hIntz] = 0;
    HouseInfo[i][hOwned] = 0;
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    HouseInfo[i][hPrice] = 0;
    HouseInfo[i][hIntid] = 0;
    HouseInfo[i][hInt] = 0;
    HouseInfo[i][hRentable] = 0;
    HouseInfo[i][hRent] = 0;
    HouseInfo[i][hLocked] = 0;
    format(HouseInfo[i][hDescr], 50, "-");
    SendClientMessage(playerid, Grey, "Haus gelöscht!");
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmd, "/houseid", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {

    Spoiler anzeigen
    format(string, sizeof string, "HouseID: %d", i);
    SendClientMessage(playerid, Grey, string);
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmd, "/sethouseprice", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /SetHousePrice [Preis]");
    new price = strval(tmp);
    if( price < 0) return SendClientMessage(playerid, Grey, "Ungültiger Preis!");
    HouseInfo[i][hPrice] = price;
    UpdateHouseLabel(i);
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/hausschloss", true))
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    if(PlayerInfo[playerid][pHouseKey] == i)
    {
    if(HouseInfo[i][hLocked])
    {
    HouseInfo[i][hLocked] = 0;
    SendClientMessage(playerid, Grey, "Haus aufgeschlossen!");
    return 1;
    }
    else if(!HouseInfo[i][hLocked])
    {
    HouseInfo[i][hLocked] = 1;
    SendClientMessage(playerid, Grey, "Haus abgeschlossen!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, Grey, "Dieses Haus gehört dir nicht!");
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/ahausaufzu", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    if(HouseInfo[i][hLocked])
    {
    HouseInfo[i][hLocked] = 0;
    SendClientMessage(playerid, Grey, "Haus aufgeschlossen!");
    return 1;
    }
    else if(!HouseInfo[i][hLocked])
    {
    HouseInfo[i][hLocked] = 1;
    SendClientMessage(playerid, Grey, "Haus abgeschlossen!");
    return 1;
    }
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmd, "/enterhouse", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /EnterHouse [HouseID]");
    new i = strval(tmp);
    if(i < 0 || i > MAX_HOUSES) return SendClientMessage(playerid, Grey, "Ungültige Haus ID!");
    SetPlayerPos(playerid, HouseInfo[i][hIntx], HouseInfo[i][hInty], HouseInfo[i][hIntz]);
    SetPlayerInterior(playerid, HouseInfo[i][hInt]);
    SetPlayerVirtualWorld(playerid, i);
    }
    return 1;
    }
    if(!strcmp(cmd, "/sethausint", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "Verwendung: /SethausInt [ID] ( /interiors )");
    new intid = strval(tmp);
    if(intid < 1 || intid > 11) return SendClientMessage(playerid, Grey, "Ungültige Interior ID. /interiors");
    HouseInfo[i][hIntid] = intid;
    DestroyDynamicPickup(HouseInfo[i][hPick]);
    DestroyDynamic3DTextLabel(HouseInfo[i][hLabel]);
    SaveHouse(i);
    LoadHouse(i);
    SendClientMessage(playerid, Grey, "Interior ID geändert!");
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/interiors", true))
    {
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
    for(new i = 0; i<sizeof(Interiors); i++)
    {
    format(string, sizeof string, "Interior Typ %d: %s, IntID: %d", i+1, Interiors[i][description]);
    SendClientMessage(playerid, Grey, string);
    }
    return 1;
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/wohnungkündigen", true))
    {
    if(PlayerInfo[playerid][pRentHouseKey] == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du mietest keine Wohnung!");
    PlayerInfo[playerid][pRentHouseKey] = MAX_HOUSES+1;
    SendClientMessage(playerid, Grey, "Mietvertrag gekündigt!");
    return 1;
    }
    if(!strcmp(cmdtext, "/mieten", true))
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    if(!HouseInfo[i][hOwned]) return SendClientMessage(playerid, Grey, "Dieses Haus gehört niemandem!");
    if(HouseInfo[i][hRentable] == 0) return SendClientMessage(playerid, Grey, "Der Besitzer vermietet das Haus nicht!");
    if(PlayerInfo[playerid][pHouseKey] != MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du kannst dir kein Haus mieten, wenn du bereits eines besitzt!");
    if(PlayerInfo[playerid][pRentHouseKey] != MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du mietest dir bereits ein Haus!");
    PlayerInfo[playerid][pRentHouseKey] = i;
    format(string, sizeof string, "Du mietest dieses Haus jetzt! An jedem Payday werden dir ab sofort die Mietkosten in Höhe von %d€ abgezogen!", HouseInfo[i][hRent]);
    SendClientMessage(playerid, Grey, string);
    SendClientMessage(playerid, Grey, "Tippe /wohungkündigen um vom Mietvertrag zurückzutreten!");
    }
    }
    return 1;
    }
    //=========================================================================


    Fehler Bild Haus :

    Fehler Tank :


    Was kann ich machen?
    kann mir Jemand Helfen?
    LG
    Crocky

  • dann müsstest du dies wohl einbinden Oo


    also schreib einfach dein eigenes das ist besser nimm dies alte Tankscript raus
    und schreib ein filterscript dann brauchst du keine Jahre um alles rauszunehmen...

  • forward Fillup();


    public Fillup()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Refueling[i] == 1)
    {
    new vid = GetPlayerVehicleID(i);
    new FillUp = 100-Gas[vid];
    new FillUpPrice = FillUp*SPRITPREIS;
    Gas[vid] += FillUp;
    Refueling[i] = 0;
    TogglePlayerControllable(i,1);
    GivePlayerMoney(i, -FillUpPrice);
    }
    }
    }
    return 1;
    }

  • Will aber das Beim Fillup das Wieder So ist wie Vorher .. alle haben nen Verschiedenen Tank

    Spoiler anzeigen

    new GasMax[] = {
    60, //"Landstalker",
    50,//"Bravura",
    50,//"Buffalo",
    110,//"Linerunner",
    45,//"Pereniel",
    50,//"Sentinel",
    200,//"Dumper",
    80,//"Firetruck",
    75,//"Trashmaster",
    60,//"Stretch",
    40,//"Manana",
    50,//"Infernus",
    50,//"Voodoo",
    90,//"Pony",
    90,//"Mule",
    48,//"Cheetah",
    70,//"Ambulance",
    60,//"Leviathan",
    60,//"Moonbeam",
    50,//"Esperanto",
    45,//"Taxi",
    40,//"Washington",
    60,//"Bobcat",
    64,//"Mr Whoopee",
    60,//"BF Injection",
    250,//"Hunter",
    50,//"Premier",
    80,//"Enforcer",
    70,//"Securicar",
    52,//"Banshee",
    50,//"Predator",
    80,//"Bus",
    100,//"Rhino",
    50,//"Barracks",
    55,//"Hotknife",
    100,//"Trailer",
    58,//"Previon",
    95,//"Coach",
    48,//"Cabbie",
    45,//"Stallion",
    70,//"Rumpo",
    100,//"RC Bandit",
    50,//"Romero",
    130,//"Packer",
    120,//"Monster Truck",
    45,//"Admiral",
    50,//"Squalo",
    80,//"Seasparrow",
    30,//"Pizzaboy",
    100,//"Tram",
    100,//"Trailer",
    55,//"Turismo",
    55,//"Speeder",
    60,//"Reefer",
    60,//"Tropic",
    160,//"Flatbed",
    80,//"Yankee",
    20,//"Caddy",
    48,//"Solair",
    75,//"Berkley's RC Van",
    100,//"Skimmer",
    50,//"PCJ-600",
    20,//"Roller",
    45,//"Freeway",
    100,//"RC Baron",
    100,//"RC Raider",
    60,//"Glendale",
    55,//"Oceanic",
    45,//"Sanchez",
    80,//"Sparrow",
    95,//"Patriot",
    25,//"Quad",
    50,//"Coastguard",
    50,//"Dinghy",
    50,//"Hermes",
    55,//"Sabre",
    90,//"Rustler",
    60,//"ZR-350",
    60,//"Walton",
    58,//"Regina",
    55,//"Comet",
    100,//"Fahrrad",
    100,//"Burrito",
    100,//"Camper",
    60,//"Marquis",
    35,//"Baggage",
    150,//"Dozer",
    100,//"Maverick",
    100,//"News Chopper",
    80,//"Rancher",
    80,//"FBI Rancher",
    50,//"Virgo",
    50,//"Greenwood",
    100,//"Jetmax",
    70,//"Hotring",
    80,//"Sandking",
    50,//"Blista Compact",
    80,//"Police Maverick",
    80,//"Boxville",
    58,//"Benson",
    80,//"Mesa",
    100,//"RC Goblin",
    75,//"Hotring Racer",
    75,//"Hotring Racer",
    75,//"Bloodring Banger",
    75,//"Rancher",
    60,//"Super GT",
    45,//"Elegant",
    110,//"Journey",
    100,//"Bike",
    100,//"Mountain Bike",
    50,//"Beagle",
    50,//"Cropdust",
    50,//"Stunt",
    140,//"Tanker",
    100,//"RoadTrain",
    50,//"Nebula",
    50,//"Majestic",
    48,//"Buccaneer",
    150,//"Shamal",
    175,//"Hydra",
    45,//"FCR-900",
    45,//"NRG-500",
    48,//"HPV1000",
    135,//"Cement Truck",
    75,//"Tow Truck",
    60,//"Fortune",
    60,//"Cadrona",
    65,//"FBI Truck",
    55,//"Willard",
    30,//"Forklift",
    35,//"Traktor",
    60,//"Combine",
    50,//"Feltzer",
    50,//"Remington",
    55,//"Slamvan",
    55,//"Blade",
    100,//"Freight",
    100,//"Streak",
    100,//"Vortex",
    48,//"Vincent",
    55,//"Bullet",
    58,//"Clover",
    60,//"Sadler",
    90,//"Firetruck",
    60,//"Hustler",
    50,//"Intruder",
    40,//"Primo",
    130,//"Cargobob",
    60,//"Tampa",
    60,//"Sunrise",
    60,//"Merit",
    100,//"Utility",
    50,//"Nevada",
    80,//"Yosemite",
    60,//"Windsor",
    100,//"Monster Truck",
    100,//"Monster Truck",
    55,//"Uranus",
    60,//"Jester",
    60,//"Sultan",
    60,//"Stratum",
    60,//"Elegy",
    150,//"Raindance",
    100,//"RC Tiger",
    50,//"Flash",
    50,//"Tahoma",
    55,//"Savanna",
    60,//"Bandito",
    100,//"Freight",
    100,//"Trailer",
    20,//"Kart",
    20,//"Mower",
    200,//"Duneride",
    35,//"Sweeper",
    50,//"Broadway",
    50,//"Tornado",
    200,//"AT-400",
    200,//"DFT-30",
    65,//"Huntley",
    60,//"Stafford",
    40,//"BF-400",
    70,//"Newsvan",
    30,//"Tug",
    100,//"Trailer",
    50,//"Emperor",
    40,//"Wayfarer",
    60,//"Euros",
    90,//"Hotdog",
    60,//"Club",
    100,//"Trailer",
    100,//"Trailer",
    200,//"Andromada",
    95,//"Dodo",
    100,//"RC Cam",
    50,//"Launch",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    75,//"Polizei Ranger",
    50,//"Picador",
    75,//"S.W.A.T. Van",
    55,//"Alpha",
    55,//"Phoenix",
    50,//"Glendale",
    50,//"Sadler",
    100,//"Luggage Trailer",
    100,//"Luggage Trailer",
    100,//"Stair Trailer",
    52,//"Boxville",
    100,//"Farm Plow",
    100//"Utility Trailer"
    };

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Nein ich Speicher das ja :D
    Zeilen :
    stock UpdateHouseLabel(i)
    {
    new str[128];
    if(!HouseInfo[i][hOwned]) format(str, sizeof str, "%s\nZum Verkauf\nPreis: %d€", HouseInfo[i][hDescr], HouseInfo[i][hPrice]);
    else if(HouseInfo[i][hOwned] && !HouseInfo[i][hRentable]) format(str, sizeof str, "%s\nBesitzer: %s", HouseInfo[i][hDescr],HouseInfo[i][hOwner]);
    else if(HouseInfo[i][hOwned] && HouseInfo[i][hRentable]) format(str, sizeof str, "%s\nBesitzer: %s\nMiete: %d€\n/mieten zum Mieten", HouseInfo[i][hDescr],HouseInfo[i][hOwner], HouseInfo[i][hRent]);
    UpdateDynamic3DTextLabelText(HouseInfo[i][hLabel], COLOR_HOUSELABEL, str);
    return 1;
    }
    if(!strcmp(cmdtext, "/hauskaufen", true))
    {
    for(new i = 0; i<MAX_HOUSES; i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]))
    {
    if(!HouseInfo[i][hOwned])
    {
    if(GetPlayerMoney(playerid) < HouseInfo[i][hPrice])
    {
    SendClientMessage(playerid, Grey, "Du hast nicht genug Geld!");
    return 1;
    }
    if(PlayerInfo[playerid][pHouseKey] != MAX_HOUSES+1)
    {
    SendClientMessage(playerid, Grey, "Du besitzt bereits ein Haus!");
    return 1;
    }
    format(HouseInfo[i][hOwner], 24, sendername);
    HouseInfo[i][hOwned] = 1;
    UpdateHouseLabel(i);
    PlayerInfo[playerid][pHouseKey] = i;
    GivePlayerMoney(playerid, -HouseInfo[i][hPrice]);
    SendClientMessage(playerid, Grey, "Glückwunsch zum Kauf der Immobilie!");
    SaveHouses();
    return 1;
    }
    }
    }
    return 1;
    }
    if(!strcmp(cmd, "/createhouse", true))
    {
    if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "/CreateHouse [Preis] [Interior Typ ( /interiors )]");
    new housepreis = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Grey, "/CreateHouse [Preis] [Interior Typ ( /interiors )]");
    new inttype = strval(tmp);
    if(inttype < 1 || inttype > sizeof(Interiors)) return SendClientMessage(playerid, Grey, "Ungültige Interior Typ ID! /interiors");
    inttype -= 1;
    new i = GetHouseID(); if(i == -1) return SendClientMessage(playerid, Grey, "Es kann kein weiters Haus mehr erstellt werden! ( MAX_HOUSES erhöhen )");
    format(string, sizeof string, "/Houses/%d.ini", i);
    dini_Create(string);
    HouseInfo[i][hEntrx] = GetX(playerid);
    HouseInfo[i][hEntry] = GetY(playerid);
    HouseInfo[i][hEntrz] = GetZ(playerid);
    HouseInfo[i][hInt] = Interiors[inttype][interiorid];
    HouseInfo[i][hIntx] = Interiors[inttype][intpx];
    HouseInfo[i][hInty] = Interiors[inttype][intpy];
    HouseInfo[i][hIntz] = Interiors[inttype][intpz];
    HouseInfo[i][hIntid] = inttype;
    HouseInfo[i][hPrice] = housepreis;
    HouseInfo[i][hRentable] = 0;
    HouseInfo[i][hRent] = 50;
    HouseInfo[i][hOwned] = 0;
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    format(HouseInfo[i][hDescr], 50, "%s", Interiors[inttype][description]);
    format(string, sizeof string, "%s\nZum Verkauf\nPreis: %d€", HouseInfo[i][hDescr], HouseInfo[i][hPrice]);
    HouseInfo[i][hLabel] = CreateDynamic3DTextLabel(string, COLOR_HOUSELABEL, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz], 20);
    HouseInfo[i][hPick] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]);
    SendClientMessage(playerid, Grey, "Haus erstellt!");
    UpdateHouseLabel(i);
    SaveHouse(i);
    return 1;
    }
    return 1;
    }
    if(!strcmp(cmdtext, "/hausverkaufen", true))
    {
    new i = PlayerInfo[playerid][pHouseKey]; if(i == MAX_HOUSES+1) return SendClientMessage(playerid, Grey, "Du besitzt kein Haus!");
    GivePlayerMoney(playerid, HouseInfo[i][hPrice]/4);
    HouseInfo[i][hOwned] = 0;
    format(HouseInfo[i][hOwner], MAX_PLAYER_NAME, "-");
    DestroyDynamicPickup(HouseInfo[i][hPick]);
    HouseInfo[i][hPick] = CreateDynamicPickup(1273, 1, HouseInfo[i][hEntrx], HouseInfo[i][hEntry], HouseInfo[i][hEntrz]);
    SendClientMessage(playerid, Grey, "Du hast dein Haus verkauft und erhälst 1/4 des Kaufpreises zurück!");
    UpdateHouseLabel(i);
    PlayerInfo[playerid][pHouseKey] = MAX_HOUSES+1;
    SaveHouses();
    return 1;
    }

  • Doch? oder ? :o
    ..... if(!HouseInfo[i][hOwned])
    {
    if(GetPlayerMoney(playerid) < HouseInfo[i][hPrice])
    {
    SendClientMessage(playerid, Grey, "Du hast nicht genug Geld!");
    return 1;
    }
    if(PlayerInfo[playerid][pHouseKey] != MAX_HOUSES+1)
    {
    SendClientMessage(playerid, Grey, "Du besitzt bereits ein Haus!");
    return 1;
    }
    format(HouseInfo[i][hOwner], 24, sendername);.....