Jump to content
  • 0

[GF/RP] Problema 3D Text Label.


Mr.Big

Question

Am un sistem de texte 3d , dar problema este ca nu mi se salveaza daca dau /edit , /buyhouse , etc , pur si simplu nu mi se modifica.Sistemul l-am pus de pe alt gm , unde merge perfect dar la mine nu.

Am un timer , cum e si in celalalt gm , la acest public:

public Custom3D()
{
	new Float:oldposx, Float:oldposy, Float:oldposz;
	//new string[256];
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			GetPlayerPos(i, oldposx, oldposy, oldposz);
			if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
			{
				for(new h = 0; h < sizeof(HouseInfo); h++)
				{
					if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 0)
		                 {
			             new string2[999];
			             Delete3DTextLabel(housesale[h]);
			             format(string2, sizeof(string2), "Casa de vanzare!\n Pret: $%d \n Descriere:%s \n Level:%d",HouseInfo[h][hValue],HouseInfo[h][hDiscription],HouseInfo[h][hLevel]);
			             housesale[h] = Create3DTextLabel(string2,COLOR_BARZINI,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);
		                 }
		                if(HouseInfo[h][hOwned] == 1)
		                {
                         new string3[999];
                        if(HouseInfo[h][hRentabil] == 0)
                         {
                         Delete3DTextLabel(housecumparat[h]);
			             format(string3, sizeof(string3), "Casa cumparata!\nProprietar:%s\nLevel:%d\nDescriere:%s",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hDiscription]);
		                 housecumparat[h] = Create3DTextLabel(string3,COLOR_BARZINI,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);
		                 }
			            if(HouseInfo[h][hRentabil] == 1)
			             {
			             Delete3DTextLabel(housecumparat[h]);
  	                     format(string3, sizeof(string3), "Casa cumparata!\nProprietar:%s\nLevel:%d\nDescriere:%s\nRent:%d$\nScrie /rentroom ca sa te cazezi",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hDiscription],HouseInfo[h][hRent]);
		                 housecumparat[h] = Create3DTextLabel(string3,COLOR_BARZINI,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);
			             }
               	       }
			  		}
		  		}
	  			for(new h = 0; h < sizeof(BizzInfo); h++)
				{
					if(BizzInfo[h][bOwned] == 0)
		            {
			          new string4[999];
			          Delete3DTextLabel(bizsale[h]);
			          format(string4, sizeof(string4), "%s\nAfacere de vanzare!\nPret:$%d\nScrie /buybiz ca sa cumperi!",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice]);
			          bizsale[h] = Create3DTextLabel(string4,COLOR_BLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);
		            }
		           if(BizzInfo[h][bOwned] == 1)
		           {
                     new string5[999];
                     Delete3DTextLabel(bizcumparat[h]);
			         format(string5, sizeof(string5), "%s\nProprietar:%s\nExtortion:%s\nIntrare:%d$\nScrie /enter ca sa intri",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost]);
			         bizcumparat[h] = Create3DTextLabel(string5,COLOR_BLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);
		           }
				}
				for(new h = 0; h < sizeof(SBizzInfo); h++)
				{
					if(SBizzInfo[h][sbOwned] == 0)
		            {
                     new string6[999];
                     Delete3DTextLabel(sbizsale[h]);
			         format(string6, sizeof(string6), "%s\nAfacere de vanzare!\nPret:$%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice]);
			         sbizsale[h] = Create3DTextLabel(string6,COLOR_BLUE,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);
			        }
		            if(SBizzInfo[h][sbOwned] == 1)
		            {
                     new string7[999];
                     Delete3DTextLabel(sbizcumparat[h]);
                     format(string7, sizeof(string7), "%s\nProprietar:%s\nExtortion:%s\nIntrare:%d$",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
		           	 sbizcumparat[h] = Create3DTextLabel(string7,COLOR_BLUE,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);
		            }
				}
			}
		}
	}
	return 1;
}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.