[Pomoć] - Gdje je problem ?


Započeo elemental., Novembar 10, 2012, 21:21:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Xoomer RolePlay
Detaljan opis problema: Skriptao sam biznis sistem, i sada sam počeo house, ali mi izbacuje warninge, ali nemam pojma gdje je greška
Dio skripte: E'o:
KucneInfo[id][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[id][hEntranceX], KucneInfo[id][hEntranceY], KucneInfo[id][hEntranceZ],30,0,1);



Prilikom deklaracije si negdje pogrijesio (pazi na mala i velika slova) ja nez sta dalje reci samo si taj dio skripte postavio, npr. tu ti pise KucneInfo a pod enum kucneInfo...

Citat: [HS]Artieâ,,¢ poslato Novembar 10, 2012, 21:37:34 POSLE PODNE
Prilikom deklaracije si negdje pogrijesio (pazi na mala i velika slova) ja nez sta dalje reci samo si taj dio skripte postavio, npr. tu ti pise KucneInfo a pod enum kucneInfo...

Nije, gledao sam sad. Nisam nigdje pogriješio, ne znam stvarno do čega je.

Možda u enumu nisi stavio npr.
Float:hEntranceX


Pa ako je mod od 0, pretpostavlja da se da je i svaki njegov sistem od 0. Šta ti znači ovo houseowner?

Citat: Mr.Cisco poslato Novembar 10, 2012, 21:49:10 POSLE PODNE
Pa ako je mod od 0, pretpostavlja da se da je i svaki njegov sistem od 0. Šta ti znači ovo houseowner?

Umjesto stringa sam to koristio. Evo cijeli dio za labele od kuće:
for(new idx = 1; idx < sizeof(KucneInfo); idx++)
	{
	format(str, sizeof(str), Kuce_Fajl, idx);
	INI_ParseFile(str, "Ucitajkucu_%s", .bExtra = true, .extra = idx );
		if(KucneInfo[idx][hOwned] == 0)
	    {
	        new houseowner[128];
	   	 	format(houseowner, sizeof(houseowner),"Ova kuca je na prodaju\nLevel: %d\nCijena: %d\nUkucaj /buyhouse da je kupis", KucneInfo[idx][hLevel], KucneInfo[idx][hPrice]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1272, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
		}
		if(KucneInfo[idx][hOwned] == 1 && KucneInfo[idx][hRent] == 0)
	    {
	        new houseowner[128];
	        format(houseowner, sizeof(houseowner),"Vlasnik: %s\nLevel: %d\nKucni broj: %d\nRent: Ne", KucneInfo[idx][hOwner], KucneInfo[idx][hLevel], KucneInfo[idx][hID]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1273, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
 		}
 		if(KucneInfo[idx][hOwned] == 1 && KucneInfo[idx][hRent] == 1)
	    {
	        new houseowner[128];
	        format(houseowner, sizeof(houseowner),"Vlasnik: %s\nLevel: %d\nKucni broj: %d\nRent: Da\nCijena renta: %d\nDa je rentas kucaj /rent", KucneInfo[idx][hOwner], KucneInfo[idx][hLevel], KucneInfo[idx][hID], KucneInfo[idx][hRentPrice]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1273, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
 		}
	}



Ubacio sam ovo tvoje i tvoj enum sistem u kao FS od 0, i ne baca niti jedan error/warn, sa tim da sam ovaj dio za labele stavio u stock.
stock KuceText(id)
{
	for(new idx = 1; idx < sizeof(KucneInfo); idx++)
	{
	format(str, sizeof(str), Kuce_Fajl, idx);
	INI_ParseFile(str, "Ucitajkucu_%s", .bExtra = true, .extra = idx );
		if(KucneInfo[idx][hOwned] == 0)
	    {
	        new houseowner[128];
	   	 	format(houseowner, sizeof(houseowner),"Ova kuca je na prodaju\nLevel: %d\nCijena: %d\nUkucaj /buyhouse da je kupis", KucneInfo[idx][hLevel], KucneInfo[idx][hPrice]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1272, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
		}
		if(KucneInfo[idx][hOwned] == 1 && KucneInfo[idx][hRent] == 0)
	    {
	        new houseowner[128];
	        format(houseowner, sizeof(houseowner),"Vlasnik: %s\nLevel: %d\nKucni broj: %d\nRent: Ne", KucneInfo[idx][hOwner], KucneInfo[idx][hLevel], KucneInfo[idx][hID]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1273, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
 		}
 		if(KucneInfo[idx][hOwned] == 1 && KucneInfo[idx][hRent] == 1)
	    {
	        new houseowner[128];
	        format(houseowner, sizeof(houseowner),"Vlasnik: %s\nLevel: %d\nKucni broj: %d\nRent: Da\nCijena renta: %d\nDa je rentas kucaj /rent", KucneInfo[idx][hOwner], KucneInfo[idx][hLevel], KucneInfo[idx][hID], KucneInfo[idx][hRentPrice]);
			KucneInfo[idx][hLabel] = Create3DTextLabel(houseowner, COLOR_LIGHTBLUE, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ],30,0,1);
			KucneInfo[idx][hPickup] = CreatePickup(1273, 1, KucneInfo[idx][hEntranceX], KucneInfo[idx][hEntranceY], KucneInfo[idx][hEntranceZ]);
 		}
	}
}