[POMOC] Ucitavanje firmi i kuce


Započeo Vitez El arambasa, Maj 22, 2015, 22:04:21 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: EG:RP neki stari (UP Izvorni)
Detaljan opis problema: Firme i kuce mi se same prave na serveru.Pokrenem server firme se automatski naprave na onoj farmi sa koordinatama 00000 i popuni se Firma folder isto tako je i sa kucama. Izbrisem sve iz foldera i opet se same naprave tamo na farmi.
Dio skripte: BIce dole
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


///////////////////////////////FIRME UCITAVANJE///////////////////////////////
	for(new b = 0; b < sizeof(FirmaInfo); b++)
	{
		new gFile[80],string[260], firmaid;
		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),""ZELENA"[ "ZUTA"%s "ZELENA"]\n"ZELENA"Biznis na prodaju!"ZELENA"\n ID Firme: "ZUTA"[ %d ]\n"ZELENA"Cena: "ZUTA"%d$\n"ZELENA"Level: "ZUTA"%d\n"ZELENA"Za kupovinu /kupifirmu",FirmaInfo[b][fNaziv],firmaid,FirmaInfo[b][fCena],FirmaInfo[b][fLevel]);
				FirmaLabel[b] = Create3DTextLabel(string ,0x0DFFFFCC,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),""ZELENA"[ "ZUTA"%s "ZELENA"]\nVlasnik: "ZUTA"%s\n"ZELENA"Level: "ZUTA"%d\n"ZELENA"Iznuda: "ZUTA"%s",FirmaInfo[b][fNaziv],FirmaInfo[b][fVlasnik],FirmaInfo[b][fLevel],FirmaInfo[b][fIznuda]);
				FirmaLabel[b] = Create3DTextLabel(string ,0x0DFFFFCC,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);
			}
	}
	//////////////////////////KUCE UCITAVANJE////////////////////////////////////////
	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"Cena: "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]);
        	    CreateDynamicMapIcon(KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ], 31, -1, 0, 0, -1, 150.0);
        	}
        	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"Cena: "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"Cena: "BELA"%d$\n"HZELENA"Cijena Renta: "BELA"%d$\n"HZELENA"Adresa: "BELA"%s\n"HZELENA"Za rent kuce /rentajkucu",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]);
                CreateDynamicMapIcon(KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ], 32, -1, 0, 0, -1, 150.0);
			}
        	if(KucaInfo[k][HCModel] != -1)
	     	{
	        	KucaInfo[k][HCV] = JBC_CreateVehicle(KucaInfo[k][HCModel], KucaInfo[k][HCX], KucaInfo[k][HCY], KucaInfo[k][HCZ], KucaInfo[k][HCA], KucaInfo[k][HCBoja1], KucaInfo[k][HCBoja2], 200);
			}
		}
	}
Poslednja Izmena: Jun 29, 2015, 20:23:30 POSLE PODNE od Vuzimir