[Pomoc]oko GTARP mod-a


Započeo Sladjan96, Jun 29, 2013, 14:56:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTARP
Detaljan opis problema:Skinuo sam gtarp mod i sad ne znam kako da namestim da ne pise onako samo na prodaju nego da pise ime firme,cena,lvl i td ,jel kad to namestim nece da se update kad neko kupi firmu,Unapred HVALA
Dio skripte:ako treba dacu..
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Jun 29, 2013, 16:33:44 POSLE PODNE od Sladjan96

Ma bre to sam kopirao ovo skripta koju koristim i td.. i nisam promenio greska nego pomozi ako mozes :D


Smanji font za pocetak, nadji u skripti to sto ti verovatno ovako pise [NA PRODAJU] i tu prepravis label, pored tj sta ce ti pisati, kada to zavrsis definises ako si stavio da pise ime biza stavis bizname itd..

Evo ovako sam stavio pod ongamemodeinit
for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
	        format(PropertyString,sizeof(PropertyString),"Kuca je na prodaju! \n ID kuce: %d \n Cena: $%d \n Opis: %s \n Level: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
			housesale = Create3DTextLabel(PropertyString,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
			AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
		    format(PropertyString,sizeof(PropertyString),"Vlasnik: %s \n Kucni Broj: %d \n Cena Rentanja: $%d \n Opis: %s \n /househelp.",HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
			housesale = Create3DTextLabel(PropertyString ,0x00C2ECFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
			AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
 	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
			format(PropertyString, sizeof(PropertyString), "Biznis je na Prodaju! \n %s \n Cena: $%d \n Potrebni Level: %d \n  /bizhelp. ",BizzInfo[h][bMessage], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
			bizsale = Create3DTextLabel(PropertyString,0x00FF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,50,0,1);
			AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
		if(BizzInfo[h][bOwned] == 1)
		{
		    format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s\n Iznuda: %s \n Ulaz: $%d. \n Da udjes kucaj, /enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
			bizsale = Create3DTextLabel(PropertyString ,0x00C2ECFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,50,0,1);
			AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			format(PropertyString, sizeof(PropertyString), "Bizz je na prodaju! \n %s \n\n Cena: $%d \n Level: %d \n Da kupis kucaj, /buybiz",SBizzInfo[h][sbMessage], SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
			sbizsale = Create3DTextLabel(PropertyString,0x00FF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,50,0,1);
			AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
		if(SBizzInfo[h][sbOwned] == 1)
		{
		    format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s \n Iznuda: %s \n Ulaz: $%d. \n  Da udjes kucaj, /enter.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
			sbizsale = Create3DTextLabel(PropertyString ,0x00C2ECFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
			AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}

	}



ali sad kad kupim kucu ne menja tek kad se server restartuje evo i komanda buy


if(strcmp(cmd, "/buybiz", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			new Float:oldposx, Float:oldposy, Float:oldposz;
			GetPlayerName(playerid, playername, sizeof(playername));
			GetPlayerPos(playerid, oldposx, oldposy, oldposz);
            if(PlayerInfo[playerid][pPbiskey] != 255)
			{
				SendClientMessage(playerid, COLOR_WHITE, "   Vec posedujete biznis, ukucajte /sellbiz ako zelite da kupite ovaj.");
				return 1;
			}
			for(new b = 0; b < sizeof(SBizzInfo); b++)
			{
				if(PlayerToPoint(2.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]) && SBizzInfo[b][sbOwned] == 0)
				{
					if(PlayerInfo[playerid][pLevel] < SBizzInfo[b][sbLevelNeeded])
					{
						format(string, sizeof(string), "Morate biti level %d da bi ste kupili ovo",SBizzInfo[b][sbLevelNeeded]);
						SendClientMessage(playerid, COLOR_GRAD5, string);
						return 1;
					}
					if(GetPlayerMoney(playerid) > SBizzInfo[b][sbBuyPrice])
					{
					    Delete3DTextLabel(Text3D:sbizsale);
						PlayerInfo[playerid][pPbiskey] = b+100;
						SBizzInfo[b][sbOwned] = 1;
						GetPlayerName(playerid, sendername, sizeof(sendername));
						strmid(SBizzInfo[b][sbOwner], sendername, 0, strlen(sendername), 255);
						SafeGivePlayerMoney(playerid,-SBizzInfo[b][sbBuyPrice]);
						PlayerPlayMusic(playerid);
						SendClientMessage(playerid, 0xFFFFFFAA, "Cestitamo na novoj kupovini.");
						SendClientMessage(playerid, 0xFFFFFFAA, "Ukucajte /help da bi pogledali nove komande za biznis.");
						Delete3DTextLabel(Text3D:sbizsale);
                        DateProp(playerid);
						OnPropUpdate();
						OnPlayerUpdate(playerid);
						return 1;
					}
					else
					{
						SendClientMessage(playerid, COLOR_WHITE, "Nemate novca za to");
						return 1;
					}
				}
			}
			for(new b = 0; b < sizeof(BizzInfo); b++)
			{
				if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]) && BizzInfo[b][bOwned] == 0)
				{
					if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded])
					{
						format(string, sizeof(string), "Morate biti level %d da bi kupili ovo",BizzInfo[b][bLevelNeeded]);
						SendClientMessage(playerid, COLOR_GRAD5, string);
						return 1;
					}
					if(GetPlayerMoney(playerid) > BizzInfo[b][bBuyPrice])
					{
					    Delete3DTextLabel(Text3D:bizsale);
						PlayerInfo[playerid][pPbiskey] = b;
						BizzInfo[b][bOwned] = 1;
						GetPlayerName(playerid, sendername, sizeof(sendername));
						strmid(BizzInfo[b][bOwner], sendername, 0, strlen(sendername), 255);
						SafeGivePlayerMoney(playerid,-BizzInfo[b][bBuyPrice]);
						PlayerPlayMusic(playerid);
						SetPlayerInterior(playerid,BizzInfo[b][bInterior]);
						PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior];
						SetPlayerPos(playerid,BizzInfo[b][bExitX],BizzInfo[b][bExitY],BizzInfo[b][bExitZ]);
						GameTextForPlayer(playerid, "~w~Dobrodosli~n~Da izadjete,ukucajte /exit", 5000, 3);
						PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior];
						PlayerInfo[playerid][pLocal] = b ;
						SendClientMessage(playerid, 0xFFFFFFAA, "Cestitamo na novoj kupovini.");
						SendClientMessage(playerid, 0xFFFFFFAA, "Ukucajte /help da vidite nove komande za vas biznis.");
						Delete3DTextLabel(Text3D:bizsale);
                        DateProp(playerid);
						OnPropUpdate();
						OnPlayerUpdate(playerid);
						return 1;
					}
					else
					{
						SendClientMessage(playerid, COLOR_WHITE, "Nemate novca za to");
						return 1;
					}
				}
			}
		}
		return 1;
	}


znaci kako da namestim da se label update i kad kupim i kad prodam i kad promenim ime biza, cenu produkta i td to ja hocu

Moras da namestis proveru da kad igrac kupi da se automatski updejtuje label..