( Pomoc ) Izgleda ne sprema kuce kako treba.

Započeo Drobnjak
15. Maj 2013. Zaključano
336
pregleda
9
postova
Drobnjak
5
Crime Lord
15. Maj 2013.
Skripta : Clasic Life RP ( CLRP )

Problem : Ovako.Imam problem sa house sistemom.


Kucam /napmalu ( da napravi malu kucu ) i sve je ok napravi je pise Opis lvl i to sve,ali kada opet kucam /napmalu ona se napravi a ova prije nje se obrise.Mislim ostae pickup ali nema text labela i to...
Moze li se kako popraviti?


Dio Skripte : Neznam sta da vam dam recite sta god vam treba samo pomozite  😐
[WW]ivan
5
Kingpin
15. Maj 2013.
daj komandu
Drobnjak
5
Crime Lord
15. Maj 2013.
Crazyn3ss wrote on May 15, 2013, 6:09 pm:
daj komandu


Izvoli :
CMD:napmalu(playerid, params[])
{
    new string;
    new NewHouseID = SpawnedHouses+1;

    GetPlayerPos(playerid, Houses, Houses, Houses);

    PlayerInfo++;

    format( string, sizeof( string ), "Exterijer postavljen (X: %f, Y: %f, Z: %f).", Houses, Houses, Houses);
    SendClientMessage( playerid, WHITE, string);
    GetPlayerPos(playerid, Houses, Houses, Houses);

    PlayerInfo++;

    Houses = GetPlayerInterior( playerid );

    format( string, sizeof( string ), "interijer postavljen! (X: %f, Y: %f, Z: %f).",Houses, Houses, Houses);
    SendClientMessage( playerid, WHITE, string);

    if(NewHouseID >= MAX_HOUSES) {
        SendClientMessage( playerid, WHITE, "Vec ima previse kuca!" );
    }
    else {
        format( string, sizeof( string ), "Houses/House_%d.ini", NewHouseID);

        if(!fexist( string) ) {
            new id;
            SpawnedHouses++;
            Houses = 40000;
            Houses = 4;
            strmid(Houses, "Mala Kuca", 0, strlen("Mala Kuca"), 255);
            Houses = 418;
            Houses = 0;
            Houses = 0;
            format(Houses, 255, "Niko" );
            Houses = 0;
            Houses = AddStaticPickup(1273, 1, Houses, Houses, Houses);

            dini_Create( string);
            dini_IntSet( string, "InteriorID", Houses);
            dini_FloatSet( string, "InteriorX", Houses);
            dini_FloatSet( string, "InteriorY", Houses);
            dini_FloatSet( string, "InteriorZ", Houses);

            dini_IntSet( string, "HousePrice", 40000 );

            dini_IntSet( string, "ExteriorID", 0 );
            dini_FloatSet( string, "ExteriorX", Houses);
            dini_FloatSet( string, "ExteriorY", Houses);
            dini_FloatSet( string, "ExteriorZ", Houses);

            dini_IntSet( string, "VaultMoney", -1);

            dini_IntSet( string, "HouseCocaine", -1);
            dini_IntSet( string, "HousePot", -1);
            dini_IntSet( string, "HouseMaterials", -1);

            dini_Set( string, "Owner", "Niko" );
            dini_IntSet(string, "Level", 5);

            dini_IntSet( string, "LockStatus", Houses);
            dini_IntSet( string, "hVec", Houses);
            dini_IntSet( string, "hVcol1", Houses);
            dini_IntSet( string, "hVcol2", Houses);
            dini_Set( string, "Addres", Houses);
            dini_Set( string, "Opis", Houses);
            dini_IntSet( string, "Owned", Houses);
            PlayerInfo--;
            PlayerInfo--;
            OnPropTextdrawUpdate(1,id);
            format(string, sizeof(string), "Uspjesno postavljena kuca | ID: %i",NewHouseID);
            SendClientMessage(playerid, WHITE, string);
            return 1;
        }
    }
    return 1;
}
[WW]ivan
5
Kingpin
15. Maj 2013.
probaj ovako
CMD:napmalu(playerid, params[])
{
    new string;
    new NewHouseID = SpawnedHouses+1;

    GetPlayerPos(playerid, Houses, Houses, Houses);

    PlayerInfo++;

    format( string, sizeof( string ), "Exterijer postavljen (X: %f, Y: %f, Z: %f).", Houses, Houses, Houses);
    SendClientMessage( playerid, WHITE, string);
    GetPlayerPos(playerid, Houses, Houses, Houses);

    PlayerInfo++;

    Houses = GetPlayerInterior( playerid );

    format( string, sizeof( string ), "interijer postavljen! (X: %f, Y: %f, Z: %f).",Houses, Houses, Houses);
    SendClientMessage( playerid, WHITE, string);

    if(NewHouseID >= MAX_HOUSES) {
        SendClientMessage( playerid, WHITE, "Vec ima previse kuca!" );
    }
    else {
        format( string, sizeof( string ), "Houses/House_%d.ini", NewHouseID);

        if(!fexist( string) ) {
            SpawnedHouses++;
            Houses = 40000;
            Houses = 4;
            strmid(Houses, "Mala Kuca", 0, strlen("Mala Kuca"), 255);
            Houses = 418;
            Houses = 0;
            Houses = 0;
            format(Houses, 255, "Niko" );
            Houses = 0;
            Houses = AddStaticPickup(1273, 1, Houses, Houses, Houses);

            dini_Create( string);
            dini_IntSet( string, "InteriorID", Houses);
            dini_FloatSet( string, "InteriorX", Houses);
            dini_FloatSet( string, "InteriorY", Houses);
            dini_FloatSet( string, "InteriorZ", Houses);

            dini_IntSet( string, "HousePrice", 40000 );

            dini_IntSet( string, "ExteriorID", 0 );
            dini_FloatSet( string, "ExteriorX", Houses);
            dini_FloatSet( string, "ExteriorY", Houses);
            dini_FloatSet( string, "ExteriorZ", Houses);

            dini_IntSet( string, "VaultMoney", -1);

            dini_IntSet( string, "HouseCocaine", -1);
            dini_IntSet( string, "HousePot", -1);
            dini_IntSet( string, "HouseMaterials", -1);

            dini_Set( string, "Owner", "Niko" );
            dini_IntSet(string, "Level", 5);

            dini_IntSet( string, "LockStatus", Houses);
            dini_IntSet( string, "hVec", Houses);
            dini_IntSet( string, "hVcol1", Houses);
            dini_IntSet( string, "hVcol2", Houses);
            dini_Set( string, "Addres", Houses);
            dini_Set( string, "Opis", Houses);
            dini_IntSet( string, "Owned", Houses);
            PlayerInfo--;
            PlayerInfo--;
            OnPropTextdrawUpdate(1, NewHouseID);
            format(string, sizeof(string), "Uspjesno postavljena kuca | ID: %i",NewHouseID);
            SendClientMessage(playerid, WHITE, string);
            return 1;
        }
    }
    return 1;
}
Drobnjak
5
Crime Lord
15. Maj 2013.
Isto evo i slika...

http://i.imgur.com/9VE5fHD.jpg
Blaeks_Biofor
5
Forum Don
16. Maj 2013.
zasto ne kreiras komandu kojom ces brisati male kuce ?
Drobnjak
5
Crime Lord
16. Maj 2013.
I Å¡ta dobijam sa tim? 🙂)
Blaeks_Biofor
5
Forum Don
16. Maj 2013.
dobijas komandu koje ce bristi male kuce, da bi mogao kreirati nove  🙄
Drobnjak
5
Crime Lord
16. Maj 2013.
|LG|Yui_Sang wrote on May 16, 2013, 1:17 pm:
dobijas komandu koje ce bristi male kuce, da bi mogao kreirati nove  🙄
Al njemu netreba da obrise stare neko kad ima primer 1 i doda jos 1 da mu se ne brise label na ovu prvu

Da.tako je

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha