[Pomoc] Error


Započeo LoOdaK, Jul 15, 2016, 01:45:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: BE x8.5 edit
Detaljan opis problema:prebacio sam komandu /takedrugs u zcmd i sve je radilo tj compiler izbaci da nema errora.Ja reko haj da testam i upalim ja srw i udjem na srw ukucam sifru i kao da nema nista na modu spawnam se nema nijednog td-a i nema nijedne mape nit komande rade.Nista ja izadjem updateujem sscanf2 i streamer i compile mod.Izbaci mi 1 error "OBJECT_MATERIAL_SIZE_256x128" na liniji 254 a linija 254 je "#define PRODAJKUCUPIN   10410"
Dio skripte: dao sam gore
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Neas prefix za to ce ti rudimental zatvorit temu , dalje ovo kako si ti opisao ima veze sa  https://wiki.sa-mp.com/wiki/SetObjectMaterialText
de opisi bolje jesil imao prije te komande /takedrugs error?
i de postavi komandu..

Aj daj taj dio gdjeje ta cmd i taj dio gdje je error

Sad vam kazem izbacuje error undefined symbol "OBJECT_MATERIAL_SIZE_256x128" na liniji  254 a linija 254 je ova
#define PRODAJKUCUPIN   10410
evo i komanda i prije komande nisam imao nikakvih errora sve je bilo ok
CMD:takedrugs(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
	    new kolicina,string[100];
	    if(sscanf(params,"i",kolicina)) return SCM(playerid, COLOR_LIGHTRED," Koriscenje: {ffffff}/takedrugs [kolicina]");
	    if(kolicina < 1 || kolicina > 50) return SCM(playerid, -1," Ne mozete uzeti manje od 1 gram ili vise od 50 grama droge !!");
	    if(PlayerToPoint(4.0, playerid,2574.6660,-1286.7266,1037.7734))
	    {
	        if(PlayerInfo[playerid][pLeader] == 6) // TEC
	        {
         		if(kolicina > droga[lcndrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[lcndrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(6, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,1085.9591,2121.1504,15.3504))
		{
			if(PlayerInfo[playerid][pLeader] == 5) // Ruska Mafija
			{
				if(kolicina > droga[Yamaguchidrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[Yamaguchidrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(5, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,444.0237,226.3325,987.8297))
		{
			if(PlayerInfo[playerid][pLeader] == 13) // Ballas
			{
				if(kolicina > droga[balldrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[balldrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(13, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,2242.2830,1468.1670,1020.6920))
		{
			if(PlayerInfo[playerid][pLeader] == 17) // Privatna Organizacija 1
			{
			    if(kolicina > droga[klipdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[klipdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(17, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,135.5675,-397.9039,1019.2297))
		{
			if(PlayerInfo[playerid][pLeader] == 14) // Los Surenos 13
			{
				if(kolicina > droga[surdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[surdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(14, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,102.3716,-374.9053,1007.4500))
		{
			if(PlayerInfo[playerid][pLeader] == 11) // Al-kaida
			{
				if(kolicina > droga[alkdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[alkdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(11, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,-257.9924,646.4330,1062.7937))
		{
			if(PlayerInfo[playerid][pLeader] == 8) // Triada
			{
				if(kolicina > droga[rdtdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[rdtdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(8, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,323.3332,1242.7146,1071.5824))
		{
			if(PlayerInfo[playerid][pLeader] == 15) // Mara Salvatrucha 13
			{
				if(kolicina > droga[cripsdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[cripsdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(15, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else if(PlayerToPoint(4.0, playerid,2494.1777,-1657.2288,1030.6094))
		{
			if(PlayerInfo[playerid][pLeader] == 16) // Groove Street Families
			{
				if(kolicina > droga[bloodsdrug])
 				{
				 	SendClientMessage(playerid, COLOR_GREY, "   Nema toliko droge u sefu.");
				 	return 1;
			 	}
				PlayerInfo[playerid][pDrugs] += kolicina;
 				droga[bloodsdrug] -= kolicina;
				format(string, sizeof(string), "* %s uzima paket droge iz sefa.", GetName(playerid));
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				format(string, sizeof(string), "* [Lider] %s je uzeo %dg droge iz sefa.", GetName(playerid),kolicina);
				SendFamilyMessage(16, COLOR_YELLOW, string);
            }
			else
			{
   				SendClientMessage(playerid,COLOR_WHITE," Niste Lider !!!");
			}
		}
		else
		{
		    SendClientMessage(playerid, -1,"[Greska] Niste u blizini sefa !!");
		}
		SacuvajDrogu();
		Updatelabovebandi();
	}
	return 1;
}


EDIT: Sad sam pogledao ovo SetObjectMaterialText i to ja nemam uopste u skripti izgleda
Poslednja Izmena: Jul 16, 2016, 00:17:31 PRE PODNE od ●•٠·Dolke ·٠•●
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Hmmm Do te CMD nije a de cijelu liniju errora

Skontao sam sad da je do streamer-a  :) al nezz kako da popravim  :'(  :'(
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!




Update sam ga
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!