[Pomoc]Ne ucita ,..


Započeo davax, Januar 22, 2014, 17:08:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ne radi neke erore mi baca

Znaci samo na firmama ima 3dtextlabel

a na kucama , vikendicama ,stanovima nema !!

#define KUCE_FILE    "Kuce/%d.ini"
#define MAX_KUCA 900
enum Kuce
{
	kProveraVlasnika,
	kVlasnik[MAX_PLAYER_NAME],
	kVrsta[35],
	Float:kUlazX,
	Float:kUlazY,
	Float:kUlazZ,
	Float:kIzlazX,
	Float:kIzlazY,
	Float:kIzlazZ,
	kLevel,
	kCena,
    kNovac,
	kInt,
	kZatvoreno,
	kVW,
	kOruzije,
	kMunicija,
	kRent,
	kCenaRenta,
	kZvono,
	kFrizder,
	kMats,
	kDroga,
	kOdjeca,
	kVrstaIntKuce,
	kHrana
};
new KucaInfo[MAX_KUCA][Kuce];
new KucaPickup[sizeof(KucaInfo)];
new Text3D:KucaLabel[sizeof(KucaInfo)];


#define FIRMA_FILE    "Firme/%d.ini"
#define MAX_FIRMI 900
enum Firme
{
	fImaVlasnika,
	fVlasnik[MAX_PLAYER_NAME],
	fVrsta,
	fNaziv[64],
	fIznuda[64],
	Float:fUlazX,
	Float:fUlazY,
	Float:fUlazZ,
	Float:fIzlazX,
	Float:fIzlazY,
	Float:fIzlazZ,
	fLevel,
	fCena,
	fKasa,
	fInt,
	fZatvoreno,
	fProizvodi,
	fMaxProizvodi,
	fVW
};











new FirmaInfo[MAX_FIRMI][Firme];
new UsaoFirma[MAX_PLAYERS];
new FirmaPickup[sizeof(FirmaInfo)];
new Text3D:FirmaLabel[sizeof(FirmaInfo)];


stock KuceLP(idkuce)
{
	new string[500];
	if(KucaInfo[idkuce][kProveraVlasnika] == 0)
	{
		Delete3DTextLabel(KucaLabel[idkuce]);
		DestroyDynamicPickup(KucaPickup[idkuce]);
        format(string,sizeof(string),""HZELENA"Kuca na Prodaju!\nVrsta: "BELA"%s\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Level: "BELA"%d\n"HZELENA"Adresa: "BELA"%s\n"HZELENA"Za kupovinu kuce /kupikucu",KucaInfo[idkuce][kVrsta],KucaInfo[idkuce][kCena],KucaInfo[idkuce][kLevel],UlicaKuce(idkuce));
        KucaLabel[idkuce] = Create3DTextLabel(string ,0x33CCFFAA,KucaInfo[idkuce][kUlazX],KucaInfo[idkuce][kUlazY],KucaInfo[idkuce][kUlazZ],30.0,0,1);
        KucaPickup[idkuce] = CreateDynamicPickup(1273, 1, KucaInfo[idkuce][kUlazX], KucaInfo[idkuce][kUlazY], KucaInfo[idkuce][kUlazZ]);
	}
	else if(KucaInfo[idkuce][kProveraVlasnika] == 1)
	{
		Delete3DTextLabel(KucaLabel[idkuce]);
		DestroyDynamicPickup(KucaPickup[idkuce]);
        if(KucaInfo[idkuce][kRent] == 0)
		{
			format(string,sizeof(string),""HZELENA"Vlasnik: "BELA"%s\n"HZELENA"Vrsta: "BELA"%s\n"HZELENA"Level: "BELA"%d\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Adresa: "BELA"%s",KucaInfo[idkuce][kVlasnik],KucaInfo[idkuce][kVrsta],KucaInfo[idkuce][kLevel],KucaInfo[idkuce][kCena],UlicaKuce(idkuce));
		}
		else if(KucaInfo[idkuce][kRent] == 1)
		{
			format(string,sizeof(string),""HZELENA"Vlasnik: "BELA"%s\n"HZELENA"Vrsta: "BELA"%s\n"HZELENA"Level: "BELA"%d\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Cijena Renta: "BELA"%d$\n"HZELENA"Adresa: "BELA"%s\n"HZELENA"",KucaInfo[idkuce][kVlasnik],KucaInfo[idkuce][kVrsta],KucaInfo[idkuce][kLevel],KucaInfo[idkuce][kCena],KucaInfo[idkuce][kCenaRenta],UlicaKuce(idkuce));
		}
        KucaLabel[idkuce] = Create3DTextLabel(string ,0x33CCFFAA,KucaInfo[idkuce][kUlazX],KucaInfo[idkuce][kUlazY],KucaInfo[idkuce][kUlazZ],30.0,0,1);
        KucaPickup[idkuce] = CreateDynamicPickup(1239, 1, KucaInfo[idkuce][kUlazX], KucaInfo[idkuce][kUlazY], KucaInfo[idkuce][kUlazZ]);
	}
	return 1;
}


stock FirmaLabelIPickup(idfirme)
{
	new string[256];
	if(FirmaInfo[idfirme][fImaVlasnika] == 0)
	{
		Delete3DTextLabel(FirmaLabel[idfirme]);
		DestroyDynamicPickup(FirmaPickup[idfirme]);
		format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"ZPLAVA"Firma na prodaju!\n"ZPLAVA"Cijena: "BELA"%d$\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Za kupovinu /kupifirmu",FirmaInfo[idfirme][fNaziv],FirmaInfo[idfirme][fCena],FirmaInfo[idfirme][fLevel]);
		FirmaLabel[idfirme] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[idfirme][fUlazX], FirmaInfo[idfirme][fUlazY], FirmaInfo[idfirme][fUlazZ],30.0, 0, 1);
		FirmaPickup[idfirme] = CreateDynamicPickup(1274, 1, FirmaInfo[idfirme][fUlazX], FirmaInfo[idfirme][fUlazY], FirmaInfo[idfirme][fUlazZ]);
	}
	else if(FirmaInfo[idfirme][fImaVlasnika] == 1)
	{
		Delete3DTextLabel(FirmaLabel[idfirme]);
		DestroyDynamicPickup(FirmaPickup[idfirme]);
		format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"ZPLAVA"Vlasnik: "BELA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Iznuda: "BELA"%s",FirmaInfo[idfirme][fNaziv],FirmaInfo[idfirme][fVlasnik],FirmaInfo[idfirme][fLevel],FirmaInfo[idfirme][fIznuda]);
		FirmaLabel[idfirme] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[idfirme][fUlazX], FirmaInfo[idfirme][fUlazY], FirmaInfo[idfirme][fUlazZ],30.0, 0, 1);
		FirmaPickup[idfirme] = CreateDynamicPickup(1239, 1, FirmaInfo[idfirme][fUlazX], FirmaInfo[idfirme][fUlazY], FirmaInfo[idfirme][fUlazZ]);
	}
	return 1;
}


for(new k = 0; k < sizeof(KucaInfo); k++)
    {
        new kFile[80], string[500];
        format(kFile, sizeof(kFile), KUCE_FILE, k);
        if(fexist(kFile))
        {
            INI_ParseFile(kFile, "UcitajKuce", .bExtra = true, .extra = k);
            if(KucaInfo[k][kProveraVlasnika] == 0)
	        {
        	    format(string,sizeof(string),""HZELENA"Kuca na Prodaju!\nVrsta: "BELA"%s\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Level: "BELA"%d\n"HZELENA"Adresa: "BELA"%s\n"HZELENA"Za kupovinu kuce /kupikucu",KucaInfo[k][kVrsta],KucaInfo[k][kCena],KucaInfo[k][kLevel],UlicaKuce(k));
        	    KucaLabel[k] = Create3DTextLabel(string ,0x33CCFFAA,KucaInfo[k][kUlazX],KucaInfo[k][kUlazY],KucaInfo[k][kUlazZ],30.0,0,1);
        	    KucaPickup[k] = CreateDynamicPickup(1273, 1, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ]);
        	}
        	else if(KucaInfo[k][kProveraVlasnika] == 1)
        	{
                if(KucaInfo[k][kRent] == 0)
				{
					format(string,sizeof(string),""HZELENA"Vlasnik: "BELA"%s\n"HZELENA"Vrsta: "BELA"%s\n"HZELENA"Level: "BELA"%d\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Adresa: "BELA"%s",KucaInfo[k][kVlasnik],KucaInfo[k][kVrsta],KucaInfo[k][kLevel],KucaInfo[k][kCena],UlicaKuce(k));
				}
				else if(KucaInfo[k][kRent] == 1)
				{
					format(string,sizeof(string),""HZELENA"Vlasnik: "BELA"%s\n"HZELENA"Vrsta: "BELA"%s\n"HZELENA"Level: "BELA"%d\n"HZELENA"Cijena: "BELA"%d$\n"HZELENA"Cena Renta: "BELA"%d$\n"HZELENA"Adresa: "BELA"%s\n"HZELENA"",KucaInfo[k][kVlasnik],KucaInfo[k][kVrsta],KucaInfo[k][kLevel],KucaInfo[k][kCena],UlicaKuce(k));
				}
				KucaLabel[k] = Create3DTextLabel(string ,0x33CCFFAA,KucaInfo[k][kUlazX],KucaInfo[k][kUlazY],KucaInfo[k][kUlazZ],30.0,0,1);
        	    KucaPickup[k] = CreateDynamicPickup(1239, 1, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ]);
        	}
		}
	}


///////////////////////////////FIRME UCITAVANJE///////////////////////////////
	for(new b = 0; b < sizeof(FirmaInfo); b++)
	{
		new gFile[80],string[260];
		format(gFile, sizeof(gFile), FIRMA_FILE, b);
		if(fexist(gFile))
		{
			INI_ParseFile(gFile, "UcitajFirme", .bExtra = true, .extra = b);
			if(FirmaInfo[b][fImaVlasnika] == 0)
			{
				format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"CRVENA"Firma na prodaju!\n"ZPLAVA"Cijena: "BELA"%d$\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Za kupovinu /kupifirmu",FirmaInfo[b][fNaziv],FirmaInfo[b][fCena],FirmaInfo[b][fLevel]);
				FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
				FirmaPickup[b] = CreateDynamicPickup(1274, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
			}
			else if(FirmaInfo[b][fImaVlasnika] == 1)
			{
				format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"CRVENA"Vlasnik: "BELA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Iznuda: "BELA"%s",FirmaInfo[b][fNaziv],FirmaInfo[b][fVlasnik],FirmaInfo[b][fLevel],FirmaInfo[b][fIznuda]);
				FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
				FirmaPickup[b] = CreateDynamicPickup(1239, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
			}
			if(FirmaInfo[b][fVrsta] == VRSTA_MARKET)	CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 56, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_BURG)      CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 10, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_CLUCKIN)   CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 14, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_PIZZA)     CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 29, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_PIGPEN)    CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_BAR)       CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 49, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_GYM)       CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 54, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_SEXSHOP)   CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 36, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_BINCO)     CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_GUNSHOP)   CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 6, -1, 0, 0, -1, 150.0);
			if(FirmaInfo[b][fVrsta] == VRSTA_DISCO)     CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_RESTORAN)  CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 50, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_ZIP)       CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_VICTIM)    CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_SUBURBAN)  CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_BARBER)    CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 7, -1, 0, 0, -1, 150.0);
	        if(FirmaInfo[b][fVrsta] == VRSTA_KLADIONICA)CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 25, -1, 0, 0, -1, 150.0);
		}
	}
	////////



Evo dao sam vam ovo sta radi  FIRME  i ovo sta neradi KUCE      ako ima koja greska


Pa prebaci u dynamic sve i updateuj streamer plugin, mozda si premasio limit obicnih 3dova (1024)

Kad stavim u dynamic ni firme se onda ne vide   ,..

Sta moram sve   Create3DTextLabel   zamjenim sa   CreateDynamic3DTextLabel               i jos sta moram zamjenit ili stavit ??   

ovo moram isto zamjenit ?? ili new Text3D:ServerLabel[100];