PARTNERI:
-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoc] Ne ucitaje pickupe, labele, bizove, kuce..  (Pročitano 495 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Ne ucitaje pickupe, labele, bizove, kuce..
« poslato: Maj 08, 2020, 21:35:45 posle podne »
Problem(error/warning): Ne ucitaje pickupe, labele, bizove, kuce..
Dio skripte: [ pawn ]Sta bude trebalo[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Ukoliko bude nesto potrebno[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #1 poslato: Maj 10, 2020, 11:23:09 pre podne »
bump
 

Van mreže V01D

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #2 poslato: Maj 10, 2020, 12:40:29 posle podne »
Daj primer jednog, kako ga kreiras?

RADOVI

Y_TIMERS TUT -> KLIKNI ME NEZNO
Duel System FS -> KLIKNI ME NEZNO
Noise RolePlay -> KLIKNI ME NEZNO
C# Custom SAMP Launcher -> KLIKNI ME NEZNO
FySnow Map -> KLIKNI ME NEZNO
Hunger Games FS -> KLIKNI ME NEZNO
FunRace LiveEvent FS -> KLIKNI ME NEZNO
Registracija Sistem(VIDEO) -> KLIKNI ME NEZNO

Napustio SAMP

 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #3 poslato: Maj 10, 2020, 13:26:44 posle podne »
stock LoadHouses()
{

new file[128];
for(new idx = 0; idx < sizeof(HouseInfo) ; idx++)
{
    format(file, sizeof(file),"YUnitedBalkanfiles/Kuce/%d.ini", idx);
    if(dini_Exists(file))
{
HouseInfo[idx][hEntrancex] = dini_Float(file,"Entrance_X");
HouseInfo[idx][hEntrancey] = dini_Float(file,"Entrance_Y");
HouseInfo[idx][hEntrancez] = dini_Float(file,"Entrance_Z");
HouseInfo[idx][hExitx] = dini_Float(file,"Exit_X");
HouseInfo[idx][hExity] = dini_Float(file,"Exit_Y");
HouseInfo[idx][hExitz] = dini_Float(file,"Exit_Z");
HouseInfo[idx][hHealthx] = dini_Int(file,"Health_X");
HouseInfo[idx][hHealthy] = dini_Int(file,"Health_Y");
HouseInfo[idx][hHealthz] = dini_Int(file,"Health_Z");
HouseInfo[idx][hArmourx] = dini_Int(file,"Armour_X");
HouseInfo[idx][hArmoury] = dini_Int(file,"Armour_Y");
HouseInfo[idx][hArmourz] = dini_Int(file,"Armour_Z");
strmid(HouseInfo[idx][hOwner], dini_Get(file,"Owner"), 0, strlen(dini_Get(file,"Owner")), 255);
strmid(HouseInfo[idx][hDiscription], dini_Get(file,"Description"), 0, strlen(dini_Get(file,"Description")), 255);
HouseInfo[idx][hValue] = dini_Int(file,"Price");
HouseInfo[idx][hHel] = dini_Int(file,"Health");
HouseInfo[idx][hArm] = dini_Int(file,"Armour");
HouseInfo[idx][hInt] = dini_Int(file,"Interior");
HouseInfo[idx][hLock] = dini_Int(file,"Locked");
HouseInfo[idx][hOwned] = dini_Int(file,"Owned");
HouseInfo[idx][hRooms] = dini_Int(file,"Rooms");
HouseInfo[idx][hRentabil] = dini_Int(file,"Rentable");
HouseInfo[idx][hRent] = dini_Int(file,"RentPrice");
HouseInfo[idx][hTakings] = dini_Int(file,"Takings");
HouseInfo[idx][hSetted] = dini_Int(file,"Setted");
HouseInfo[idx][hLevel] = dini_Int(file,"LevelNeeded");
HouseInfo[idx][hWorld] = dini_Int(file,"World");
        HouseInfo[idx][hDrugs] = dini_Int(file,"Drugs");
        HouseInfo[idx][hMaterials] = dini_Int(file,"Materials");
        HouseInfo[idx][hWeapon1] = dini_Int(file,"Weapon1");
HouseInfo[idx][hAmmo1] = dini_Int(file,"Ammo1");
HouseInfo[idx][hWeapon2] = dini_Int(file,"Weapon2");
HouseInfo[idx][hAmmo2] = dini_Int(file,"Ammo2");
HouseInfo[idx][hWeapon3] = dini_Int(file,"Weapon3");
HouseInfo[idx][hAmmo3] = dini_Int(file,"Ammo3");
        HouseInfo[idx][hWeapon4] = dini_Int(file,"Weapon4");
        HouseInfo[idx][hAmmo4] = dini_Int(file,"Ammo4");
        HouseInfo[idx][hWeapon5] = dini_Int(file,"Weapon5");
HouseInfo[idx][hAmmo5] = dini_Int(file,"Ammo5");
        HouseInfo[idx][hWeapon6] = dini_Int(file,"Weapon6");
        HouseInfo[idx][hAmmo6] = dini_Int(file,"Ammo6");
        HouseInfo[idx][hDate] = dini_Int(file,"Date");
        strmid(HouseInfo[idx][hMessage], dini_Get(file,"Message"), 0, strlen(dini_Get(file,"Message")), 255);
HouseInfo[idx][hHipoteka] = dini_Int(file,"Hipoteka");
HouseInfo[idx][hZvono] = dini_Int(file,"Zvono");
HouseInfo[idx][hSkin1] = dini_Int(file,"Skin1");
HouseInfo[idx][hSkin2] = dini_Int(file,"Skin2");
HouseInfo[idx][hSkin3] = dini_Int(file,"Skin3");
HouseInfo[idx][hNamCij] = dini_Int(file,"NamCij");
}


}
print("Ucitane kuce");
return 1;
}

LoadHouses();
for(new h = 0; h < sizeof(HouseInfo); h++)
{
    if(HouseInfo[h][hSetted] == 1)
    {
if(HouseInfo[h][hOwned] == 0)
{
  format(PropertyString,sizeof(PropertyString),"{6EF83C}Na prodaju!\n{F3FF02}Cijena: $%d \nVelicina: %s \nPotreban nivo: %d",HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
}
else if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil]==1)
{
format(PropertyString,sizeof(PropertyString),"{F3FF02}Adresa: {FFFFFF}%s\n {F3FF02}Vlasnik:{FFFFFF} %s\n {F3FF02}Cijena renta: {FFFFFF}$%d\n {F3FF02}Velicina: {FFFFFF}%s\n {F3FF02}Za rent:{FFFFFF} /rentroom", HouseInfo[h][hMessage],HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
}
else
{
format(PropertyString,sizeof(PropertyString),"{F3FF02}Adresa: {FFFFFF}%s\n {F3FF02}Vlasnik:{FFFFFF} %s\n {F3FF02}Velicina: {FFFFFF}%s", HouseInfo[h][hMessage],HouseInfo[h][hOwner], HouseInfo[h][hDiscription]);
}
HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
}
}
}

dcmd_pk(playerid,params[])
{
if(AOvlast(playerid,1339))
{
new tip,cijena,adresa[24],string[128];
if(sscanf(params,"iis[120]",tip,cijena,adresa)) SendClientMessage(playerid,COLOR_NICERED,"{FFFFFF}YUB Pomoc|{00C0FF} /pk [Tip] [Cijena] [Adresa]");
else if(tip < 1 || tip > 4)
{
SCM(playerid,COLOR_GREY,"{FFFFFF}Tip moze biti samo: 1 (Mala), 2 (Srednja), 3 (Velika), 4 (Villa)");
}
else if(cijena < 30000 || cijena > 3000000)
{
SCM(playerid,COLOR_GREY,"Cijena mora biti izmedju 30000$ i 3000000$.");
}
else
{
new houseid, Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);   
for(new h = 0; h < sizeof(HouseInfo); h++)
{
//Nakon sto svrsimo sa kucama u sf postavit inicijalnu na 0
if(HouseInfo[h][hSetted] == 0)
{
    houseid = h;
break;
}
}
if(houseid > 1199)
{
SCM(playerid,COLOR_GREY,"Maximalan broj kuca je dostignut!");
return 1;
}
format(string, sizeof(string),"YUnitedBalkanfiles/Kuce/%d.ini",houseid);
dini_Create(string);

HouseInfo[houseid][hValue] = cijena;
strmid(HouseInfo[houseid][hMessage],adresa, 0, strlen(adresa),25);
HouseInfo[houseid][hEntrancex] = X;
HouseInfo[houseid][hEntrancey] = Y;
HouseInfo[houseid][hEntrancez] = Z;
HouseInfo[houseid][hWorld] = houseid;
HouseInfo[houseid][hSetted] = 1;
HouseInfo[houseid][hHipoteka] = 0;
strmid(HouseInfo[houseid][hOwner],"Drzava",0,strlen("Drzava"),7);
if(tip == 1)
{
HouseInfo[houseid][hLevel] = 4;
strmid(HouseInfo[houseid][hDiscription], "Mala", 0, strlen("Mala"), 5);
if(nexthouse == 2)
{
    nexthouse = 3;
    HouseInfo[houseid][hExitx] =2259.3904; HouseInfo[houseid][hExity] =-1135.9304; HouseInfo[houseid][hExitz] =1050.6403;
HouseInfo[houseid][hInt] = 10;
}
else if(nexthouse == 3)
{
    nexthouse = 6;
    HouseInfo[houseid][hExitx] =225.5707; HouseInfo[houseid][hExity] =1240.0643; HouseInfo[houseid][hExitz] =1082.1406;
HouseInfo[houseid][hInt] = 2;
}
else if(nexthouse == 6)
{
    nexthouse = 12;
    HouseInfo[houseid][hExitx] =224.288; HouseInfo[houseid][hExity] = 1289.1907; HouseInfo[houseid][hExitz] = 1082.1406;
HouseInfo[houseid][hInt] = 1;
}
else if(nexthouse == 12)
{
    nexthouse = 42;
    HouseInfo[houseid][hExitx] = 446.3247; HouseInfo[houseid][hExity] = 509.9662; HouseInfo[houseid][hExitz] = 1001.4195;
HouseInfo[houseid][hInt] = 12;
}
else if(nexthouse == 42)
{
nexthouse = 44;
    HouseInfo[houseid][hExitx] = -68.5145; HouseInfo[houseid][hExity] = 1353.8485; HouseInfo[houseid][hExitz] = 1080.2109;
HouseInfo[houseid][hInt] = 6;
}
else if(nexthouse == 44)
{
nexthouse = 46;
    HouseInfo[houseid][hExitx] = -42.5267; HouseInfo[houseid][hExity] = 1408.23; HouseInfo[houseid][hExitz] = 1084.4297;
HouseInfo[houseid][hInt] = 8;
}
else if(nexthouse == 46)
{
    nexthouse = 2;
    HouseInfo[houseid][hExitx] = 261.1165; HouseInfo[houseid][hExity] = 1287.2197; HouseInfo[houseid][hExitz] = 1080.2578;
HouseInfo[houseid][hInt] = 4;
}
}
else if(tip == 2)
{
HouseInfo[houseid][hLevel] = 6;
strmid(HouseInfo[houseid][hDiscription], "Srednja", 0, strlen("Srednja"), 9);
if(nextmedium == 17)
{
    nextmedium = 19;
    HouseInfo[houseid][hExitx] =295.1391; HouseInfo[houseid][hExity] = 1473.3719; HouseInfo[houseid][hExitz] = 1080.2578;
HouseInfo[houseid][hInt] = 15;
}
else if(nextmedium == 19)
{
    nextmedium = 21;
    HouseInfo[houseid][hExitx] = 446.626; HouseInfo[houseid][hExity] = 1397.738; HouseInfo[houseid][hExitz] = 1084.3047;
HouseInfo[houseid][hInt] = 2;
}
else if(nextmedium == 21)
{
    nextmedium = 30;
    HouseInfo[houseid][hExitx] = 221.6766; HouseInfo[houseid][hExity] = 1142.4962; HouseInfo[houseid][hExitz] = 1082.6094;
HouseInfo[houseid][hInt] = 4;
}
else if(nextmedium == 30)
{
    nextmedium = 32;
    HouseInfo[houseid][hExitx] = 22.861; HouseInfo[houseid][hExity] = 1404.9165; HouseInfo[houseid][hExitz] = 1084.4297;
HouseInfo[houseid][hInt] = 5;
}
else if(nextmedium == 32)
{
    nextmedium = 39;
    HouseInfo[houseid][hExitx] = 2807.4844; HouseInfo[houseid][hExity] = -1174.7538; HouseInfo[houseid][hExitz] = 1025.5703;
HouseInfo[houseid][hInt] = 8;
}
else if(nextmedium == 39)
{
    nextmedium = 17;
    HouseInfo[houseid][hExitx] = 2365.1089; HouseInfo[houseid][hExity] = -1133.0795; HouseInfo[houseid][hExitz] = 1050.875;
HouseInfo[houseid][hInt] = 8;
}
}
else if(tip == 3)
{
HouseInfo[houseid][hLevel] = 9;
strmid(HouseInfo[houseid][hDiscription], "Velika", 0, strlen("Velika"), 7);
if(nextbig == 1)
{
    nextbig = 13;
    HouseInfo[houseid][hExitx] = 226.3028; HouseInfo[houseid][hExity] = 1114.1334; HouseInfo[houseid][hExitz] = 1080.9929;
HouseInfo[houseid][hInt] = 5;
}
else if(nextbig == 13)
{
    nextbig = 14;
    HouseInfo[houseid][hExitx] = 24.3769; HouseInfo[houseid][hExity] = 1341.1829; HouseInfo[houseid][hExitz] = 1084.375;
HouseInfo[houseid][hInt] = 10;
}
else if(nextbig == 14)
{
    nextbig = 38;
    HouseInfo[houseid][hExitx] = -285.2511; HouseInfo[houseid][hExity] = 1471.197; HouseInfo[houseid][hExitz] = 1084.375;
HouseInfo[houseid][hInt] = 15;
}
else if(nextbig == 38)
{
    nextmedium = 15;
    HouseInfo[houseid][hExitx] = 2237.3435; HouseInfo[houseid][hExity] = -1081.4537; HouseInfo[houseid][hExitz] = 1049.0234;
HouseInfo[houseid][hInt] = 2;
}
else if(nextbig == 15)
{
    nextbig = 1;
    HouseInfo[houseid][hExitx] = -262.601990; HouseInfo[houseid][hExity] = 1456.619995; HouseInfo[houseid][hExitz] = 1084.449951;
HouseInfo[houseid][hInt] = 4;
}
}
else if(tip == 4)
{
HouseInfo[houseid][hLevel] = 14;
strmid(HouseInfo[houseid][hDiscription], "Villa", 0, strlen("Villa"), 6);
if(nextvilla == 10)
{
nextvilla = 15;
    HouseInfo[houseid][hExitx] = 2319.1272; HouseInfo[houseid][hExity] = -1023.9562; HouseInfo[houseid][hExitz] = 1050.2109;
HouseInfo[houseid][hInt] = 9;
}
else if(nextvilla == 15)
{
nextvilla = 20;
HouseInfo[houseid][hExitx] = 2323.7063; HouseInfo[houseid][hExity] = -1147.6509; HouseInfo[houseid][hExitz] = 1050.7101;
HouseInfo[houseid][hInt] = 12;
}
else if(nextvilla == 20)
{
nextvilla = 25;
HouseInfo[houseid][hExitx] =140.3679; HouseInfo[houseid][hExity] = 1367.8837; HouseInfo[houseid][hExitz] = 1083.8621;
HouseInfo[houseid][hInt] = 5;
}
else if(nextvilla == 25)
{
nextvilla = 30;
HouseInfo[houseid][hExitx] =234.2826; HouseInfo[houseid][hExity] = 1065.229; HouseInfo[houseid][hExitz] = 1084.2101;
HouseInfo[houseid][hInt] = 6;
}
else if(nextvilla == 25)
{
nextvilla = 30;
HouseInfo[houseid][hExitx] =83.0395; HouseInfo[houseid][hExity] = 1322.2811; HouseInfo[houseid][hExitz] = 1083.8662;
HouseInfo[houseid][hInt] = 9;
}
}
format(string, sizeof(string),"Kreirana kuca ID-a %d.",houseid);
SendClientMessage(playerid, COLOR_GREY, string);
format(string,sizeof(string),"{FFFFFF}[YUB] Adm| %s je kreirao kucu: [%d] na koordinatama [%f - %f - %f].",GetPlayerNameEx(playerid),houseid,X,Y,Z);
ABroadCast(COLOR_GREY,string, 5);
format(string,sizeof(string),"Kuca na prodaju! \n Cijena: $%d \n Velicina: %s \n Potreban nivo: %d",HouseInfo[houseid][hValue],HouseInfo[houseid][hDiscription], HouseInfo[houseid][hLevel]);
HouseLabel[houseid] = CreateDynamic3DTextLabel(string ,0x00FF00AA,X,Y,Z,25.0);
OnPropUpdate(3,houseid);
OnPropTextdrawUpdate(1, houseid);
}
}
return 1;
}
 

Van mreže Sploxs

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #4 poslato: Maj 10, 2020, 13:56:36 posle podne »
Verzija streamera podudara li ti se izbaciva li ti ista u server.logu?
I dini je dosta star zasto koristis njega
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #5 poslato: Maj 10, 2020, 15:41:59 posle podne »
Pa za streamer nista ne izbaciva, ubacio sam zadnji i ocita sve mape i to.. a sto se tice Dinia mod je iz neke 2015-2016, kako da polusam njega update na noviju verziju
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #6 poslato: Maj 12, 2020, 13:33:56 posle podne »
bump
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #7 poslato: Maj 15, 2020, 21:23:45 posle podne »
bump
 

Na mreži Teodor

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #8 poslato: Maj 15, 2020, 22:46:27 posle podne »




RADOVI



[Tutorial] --> Kako ubaciti TD
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #9 poslato: Maj 18, 2020, 21:14:58 posle podne »
bump
 

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #10 poslato: Maj 18, 2020, 22:00:33 posle podne »
bump
Od sada Vam samo gospodin Vodka može pomoći, pusa :D

Što ste dobijali pomoć - dobijali ste :)
 
Korisnici koji su se zahvalili: Teodor, Im the Emmett huh

Van mreže MEDO

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #11 poslato: Maj 18, 2020, 22:56:26 posle podne »
Da li imas na vrhu definisano MAX_HOUSES jer ovo sizeof(HouseInfo) nebi trebalo ovako ici pa makar, s tim sto god tebe ima uzimas veličinu enumator HouseInfo

https://nlsamp.com - 51.210.4.172:7777 - Discord: MEDO#0001
"They have computers, and they may have other weapons of mass destruction."
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #12 poslato: Maj 19, 2020, 20:43:26 posle podne »
Nemam to, ovako stoji "new HouseInfo[1200][hInfo];"
 

Van mreže Trysha

Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #13 poslato: Maj 19, 2020, 21:39:00 posle podne »
mozda si negde premasio nesto , nmp , moze biti do toga , proveri sve u scriptfiles-u :D
Borderlands Community Owner
Opposite RolePlay Developer
 

Van mreže Zlaja123

  • Pee-Wee
  • *
  • Poruke: 34
Odg: Ne ucitaje pickupe, labele, bizove, kuce..
« Odgovor #14 poslato: Maj 19, 2020, 22:10:11 posle podne »
ma provjereno sve 1000x do dinija je nesto sigurno samo nez sta, jer ne ucitaje iz filesa a ni ne upisuje