Jump to content
  • 0

Problema case/biz-uri


Question

Posted

Problema intalnita (descriere):  Nume biz/casa {2E la fiecare casa apare o erroare de genu
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional): http://imgur.com/J6SfdFu
Ati incercat sa rezolvati singur?:

Recommended Posts

  • 0
Posted

Vrei si sa ghicim in stele?

Uite eu ghicesc in stele ca ai gmul GF cel mai buguit gm de pe suprafata pamantului care a existat pana acuma.

Daca mi-ai da si liniile de la sistemul de case/bizuri ar fi exceptional.

Sa nu uitam de proprietes.cfg.

 

 

  • 0
Posted (edited)

GM Pronion....................................Nici atat nu stii??? sa rectifici/modifici un hex

 

Spoiler

//=====================================[ Houses & Biz ]=========================
for(new h = 0; h < sizeof(HouseInfo); h++)
	{
	if(HouseInfo[h][hOwned] == 0)
		{
		AddStaticPickup(19470, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
		pickups++;
		format(string, sizeof(string), "{FFFFFF}For Sale! \n{FFFFFF}Info: {FFFFFF}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Scrie {FF0000}/buyhouse",HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
		}

		if(HouseInfo[h][hOwned] == 1)
		{

		   	AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
		    pickups++;
			if(HouseInfo[h][hRentabil] == 0)
			{
				format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel]);
			}
			else
			{
				format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Rent: {8080FF}%d $ \n{FFFFFF}Scrie {FF0000}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel], HouseInfo[h][hRent]);
			}
		}

		HouseLabel[h] = Create3DTextLabel(string, 0x008080FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 1);
	}
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
			AddStaticPickup(19470, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
			format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
		}
		if(BizzInfo[h][bOwned] == 1)
		{
			AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
			format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]);
		}
		BizLabel[h] = Create3DTextLabel(string, 0x008080FF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 1);
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			AddStaticPickup(19470, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
			format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
		}
		if(SBizzInfo[h][sbOwned] == 1)
		{
			AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
			format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]);
		}
		SBizLabel[h] = Create3DTextLabel(string, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1);
	}

 

 

Edited by ★♕ Manu ★♕
  • 0
Posted
  • 0
Posted
public ExtortionBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "No-one");
    if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
	{
	    return 0;
	}
	foreach(new i : Player)
	{
	    if(IsPlayerConnected(i))
	    {
	        new name[MAX_PLAYER_NAME];
			new wstring[MAX_PLAYER_NAME];
			GetPlayerName(i, name, sizeof(name));
			format(string, sizeof(string), "%s", name);
			strmid(wstring, string, 0, strlen(string), 255);
			if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
			{
			    new value = money / 100;
			    value = value * 10;
			    GivePlayerMoney(i, value);
			    BizzInfo[bizid][bTill] -= value;
			    if(!gExto[i])
				{
					format(string, sizeof(string), "You won %d from extortion Biz: %d", value, bizid);
					SendClientMessage(i, COLOR_WHITE, string);
				}
			}
		}
	}
	return 1;
}

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "No-one");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
	{
	    return 0;
	}
	foreach(new i : Player)
	{
	    if(IsPlayerConnected(i))
	    {
	        new name[MAX_PLAYER_NAME];
			new wstring[MAX_PLAYER_NAME];
			GetPlayerName(i, name, sizeof(name));
			format(string, sizeof(string), "%s", name);
			strmid(wstring, string, 0, strlen(string), 255);
			if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
			{
			    new value = money / 100;
			    value = value * 10;
			    GivePlayerMoney(i, value);
			    SBizzInfo[bizid][sbTill] -= value;
			    if(!gExto[i])
				{
					format(string, sizeof(string), "You won %d from extortion Biz: %d", value, bizid);
					SendClientMessage(i, COLOR_WHITE, string);
				}
			}
		}
	}
	return 1;
}

asta e la biz-uri

Acum 6 minute, Mister a spus:

pai cel din publicul cu pickupul caselor, arata-ne codul cu casele daca nu il vezi

//=====================================[ Houses & Biz ]=========================
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    if(HouseInfo[h][hOwned] == 0)
        {
        AddStaticPickup(19470, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        pickups++;
        format(string, sizeof(string), "{FFFFFF}For Sale! \n{FFFFFF}Info: {FFFFFF}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Scrie {FF0000}/buyhouse",HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
        }

        if(HouseInfo[h][hOwned] == 1)
        {

               AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            if(HouseInfo[h][hRentabil] == 0)
            {
                format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel]);
            }
            else
            {
                format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Rent: {8080FF}%d $ \n{FFFFFF}Scrie {FF0000}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel], HouseInfo[h][hRent]);
            }
        }

        HouseLabel[h] = Create3DTextLabel(string, 0x008080FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            AddStaticPickup(19470, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]);
        }
        BizLabel[h] = Create3DTextLabel(string, 0x008080FF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            AddStaticPickup(19470, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]);
        }
        SBizLabel[h] = Create3DTextLabel(string, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1);
    }

  • 0
Posted (edited)

si unde dumnezeu in gm ai chestia asta??????

 

Spoiler

 

//=====================================[ Houses & Biz ]=========================
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    if(HouseInfo[h][hOwned] == 0)
        {
        AddStaticPickup(19470, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        pickups++;
        format(string, sizeof(string), "{FFFFFF}For Sale! \n{FFFFFF}Info: {FFFFFF}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Scrie {FF0000}/buyhouse",HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
        }

        if(HouseInfo[h][hOwned] == 1)
        {

               AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            if(HouseInfo[h][hRentabil] == 0)
            {
                format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel]);
            }
            else
            {
                format(string, sizeof(string), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Rent: {8080FF}%d $ \n{FFFFFF}Scrie {FF0000}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel], HouseInfo[h][hRent]);
            }
        }

        HouseLabel[h] = Create3DTextLabel(string, 0x008080FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            AddStaticPickup(19470, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]);
        }
        BizLabel[h] = Create3DTextLabel(string, 0x008080FF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            AddStaticPickup(19470, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]);
        }
        SBizLabel[h] = Create3DTextLabel(string, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1);
    }

 

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
  • 0
Posted

codul acela, care l-ai scris mai sus si l-am rescris eu intr-un spoiler mai sus, de unde l-ai copiat din gm? 

de la public OnPlayerUpdate ,  public OnGameModeinit , DE UNDE?

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted
  • 0
Posted

asta e la ongamemodeinit, apsa ctrl+f si scrie OnGameModeInit si cand te duce pe public OnGameModeInit, cauta ceva de genul string[200] sau string[120] ceva de genul, si mareste la 400 sau 250

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted
Acum 3 minute, Mister a spus:

asta e la ongamemodeinit, apsa ctrl+f si scrie OnGameModeInit si cand te duce pe public OnGameModeInit, cauta ceva de genul string[200] sau string[120] ceva de genul, si mareste la 400 sau 250

Dau ctrl+f si scriu  OnGameModeInit  si am doar unul ala de la trivia atat

  • 0
Posted
Acum 27 minute, Mister a spus:

asta e la ongamemodeinit, apsa ctrl+f si scrie OnGameModeInit si cand te duce pe public OnGameModeInit, cauta ceva de genul string[200] sau string[120] ceva de genul, si mareste la 400 sau 250

//------------------------------------------------------------------------------------------------------

new Trivia [ 21 ] [ Trivia_ENUM ];
public OnGameModeInit()
{
    AntiDeAMX();
    new BlackBoard1 = CreateObject(19353, 1145.7736, -1755.1584, 15.3482, 0.0000, 0.2999, -43.0416);
    SetObjectMaterialText(BlackBoard1, "Bine ai venit pe", 0, 50, "Comic Sans MS", 18, 1, -1, 0, 1);
    new BlackBoard2 = CreateObject(19353, 1145.7864, -1755.1333, 14.7429, -0.1000, 0.1999, -42.5415);
    SetObjectMaterialText(BlackBoard2, "Emeden RPG", 0, 50, "Arial", 17, 1, -1, 0, 1);
    new BlackBoard = CreateObject(19353, 1145.7713, -1755.1583, 14.2835, 0.0000, 0.0000, -42.2416);
    SetObjectMaterialText(BlackBoard, "Daca intampini dificultati poti sa folosesti /n", 0, 100, "Comic Sans MS", 18, 1, -1, 0, 1);
    new BlackBoard3 = CreateObject(19353, 1145.7910, -1755.1916, 14.0345, 0.0000, 0.9000, -43.9416);
    SetObjectMaterialText(BlackBoard3, "Helperii nostrii iti stau la dispozitie, foloseste comanda /needhelp", 0, 140, "Comic Sans MS", 23, 1, -1, 0, 1);
    new BlackBoard4 = CreateObject(19353, 1145.7814, -1755.1741, 13.8435, 0.0000, 0.0000, -43.6415);
    SetObjectMaterialText(BlackBoard4, "De asemenea, poti sa tastezi /help pentru lista de comenzi", 0, 130, "Comic Sans MS", 23, 1, -1, 0, 1);
    new BlackBoard5 = CreateObject(19353, 1145.8062, -1755.1821, 13.6137, 0.0000, 0.0000, -44.2747);
    SetObjectMaterialText(BlackBoard5, "Ca sa vezi de la ce lvl poti intra intr-o factiune scrie /recrutari", 0, 130, "Comic Sans MS", 23, 1, -1, 0, 1);
    new Ev15 = CreateObject(19353, -1059.9892, 3190.9433, 4.7471, 0.0000, 0.0000, -78.9477);
    SetObjectMaterialText(Ev15, "Bine ai venit la Protect the Hostage!", 0, 140, "Arial", 28, 1, -1, 0, 1);
    new Ev14 = CreateObject(19353, -1060.2208, 3190.9411, 4.3900, 0.1999, 0.0000, -80.0477);
    SetObjectMaterialText(Ev14, "Trebuie sa protejezi ostaticul de pe platforma de sus", 0, 140, "Arial", 22, 0, -1, 0, 1);
    new Ev13 = CreateObject(19353, -1060.0273, 3190.9746, 4.1871, 0.0000, 0.0000, -79.8210);
    SetObjectMaterialText(Ev13, "In cazul in care ostaticul moare, automat vei pierde", 0, 140, "Arial", 26, 0, -1, 0, 1);
    new Ev12 = CreateObject(19353, -1060.3179, 3190.9211, 3.5871, 0.0000, 0.0000, -80.5210);
    SetObjectMaterialText(Ev12, "Tu faci parte din echipa rosie!", 0, 140, "Arial", 32, 1, -65536, 0, 1);
    new Ev11 = CreateObject(19353, -1059.9654, 3190.9438, 3.2271, 0.0000, 0.0000, -78.8210);
    SetObjectMaterialText(Ev11, "Ca sa castigi, ucide ostaticul echipei adverse!", 0, 140, "Arial", 25, 1, -65536, 0, 1);
    new asa = CreateObject(19353, -1060.0054, 3190.9953, 3.1171, 0.0000, 0.0000, -79.6210);
    SetObjectMaterialText(asa, "Premiul este de 150k + 1 RP pentru fiecare membru", 0, 140, "Arial", 26, 1, -65536, 0, 1);
    new asa2 = CreateObject(19353, -1060.7436, 3190.8583, 2.8871, 0.0000, 0.0000, -79.6210);
    SetObjectMaterialText(asa2, "din echipa castigatoare!", 0, 140, "Arial", 26, 1, -65536, 0, 1);
    new bun = CreateObject(19353, -1056.2020, 3191.3588, 4.6371, 0.0000, 0.0000, -89.3478);
    SetObjectMaterialText(bun, "Un nou event marca Emeden", 0, 140, "Arial", 40, 1, -1, 0, 1);
    new Ev10 = CreateObject(19353, -1056.3031, 3191.3781, 3.8571, 0.0000, 0.0000, -89.7478);
    SetObjectMaterialText(Ev10, "special creeat pentru voi!", 0, 140, "Arial", 39, 1, -1, 0, 1);
    new credits = CreateObject(19353, -1055.2678, 3191.3872, 2.8971, 0.0000, 0.0000, -90.7478);
    SetObjectMaterialText(credits, "W1zZaN @ Emeden.Ro", 0, 140, "Arial", 24, 1, -8092540, 0, 1);
    new Ev9 = CreateObject(19353, -1005.0651, 3075.3208, 4.6971, 0.0000, 0.0000, 120.9097);
    SetObjectMaterialText(Ev9, "Bine ai venit la Protect the Hostage!", 0, 140, "Arial", 30, 1, -1, 0, 1);
    new Ev8 = CreateObject(19353, -1004.8353, 3075.2038, 4.2709, 0.0000, 0.0000, 121.1630);
    SetObjectMaterialText(Ev8, "Trebuie sa omori ostaticul echipei adverse", 0, 140, "Arial", 28, 1, -1, 0, 1);
    new Ev7 = CreateObject(19353, -1004.9056, 3075.1196, 3.8509, 0.0000, 0.0000, 121.3630);
    SetObjectMaterialText(Ev7, "Si sa te asigur ca ostaticul tau este in viata", 0, 140, "Arial", 28, 1, -1, 0, 1);
    new Ev6 = CreateObject(19353, -1004.9518, 3075.1254, 3.6073, 0.0000, -0.2999, 122.3566);
    SetObjectMaterialText(Ev6, "Jocul se termina atunci cand un ostatic moare", 0, 140, "Arial", 28, 1, -1, 0, 1);
    new Ev5 = CreateObject(19353, -1004.5053, 3075.3574, 3.3271, 0.0000, 0.0000, 121.2566);
    SetObjectMaterialText(Ev5, "Tu esti in echipa albastra!", 0, 140, "Arial", 30, 1, -16776961, 0, 1);
    new Ev4 = CreateObject(19353, -1004.8403, 3075.1518, 3.1271, 0.0000, 0.0000, 121.3566);
    SetObjectMaterialText(Ev4, "Premiu: 150k + 1 RP pentru fiecare membru", 0, 140, "Arial", 28, 1, -16776961, 0, 1);
    new Ev3 = CreateObject(19353, -1004.4735, 3075.3957, 2.8571, 0.0000, 0.0000, 120.3566);
    SetObjectMaterialText(Ev3, "din echipa castigatoare!", 0, 140, "Arial", 28, 1, -16776961, 0, 1);
    new Ev2 = CreateObject(19353, -1008.6128, 3074.3100, 4.6971, 0.0000, 0.0000, 89.8961);
    SetObjectMaterialText(Ev2, "Un nou event marca Emeden", 0, 140, "Arial", 38, 1, -1, 0, 1);
    new Ev1 = CreateObject(19353, -1008.7012, 3074.3203, 3.8609, 0.0000, 0.0000, 89.8028);
    SetObjectMaterialText(Ev1, "special creeat pentru voi!", 0, 140, "Arial", 38, 1, -1, 0, 1);
    new credits2 = CreateObject(19353, -1009.6231, 3074.3168, 2.9009, 0.0000, 0.0000, 89.2028);
    SetObjectMaterialText(credits2, "W1zZaN @ Emeden.Ro", 0, 140, "Arial", 24, 1, -8092540, 0, 1);

    PnActors[0] = CreateActor(306, 1147.288208,-1754.338256,13.613921,185.571243);
	SetActorFacingAngle(PnActors[0], 185.571243);
	SetActorVirtualWorld(PnActors[0], 0);
	SetActorInvulnerable(PnActors[0], true);
	SetActorHealth(PnActors[0], 100.000000);
	ApplyActorAnimation(PnActors[0], "ON_LOOKERS", "wave_loop", 4.1, 1, 0, 0, 1, 0);
	PnActors[1] = CreateActor(272, -1050.038208,3070.172363,18.477203,264.050506);
	SetActorFacingAngle(PnActors[1], 264.050506);
	SetActorVirtualWorld(PnActors[1], 17);
	SetActorInvulnerable(PnActors[1], false);
	SetActorHealth(PnActors[1], 100.000000);
	PnActors[2] = CreateActor(259, -1043.187377,3188.322265,20.808542,88.226745);
	SetActorFacingAngle(PnActors[2], 88.226745);
	SetActorVirtualWorld(PnActors[2], 17);
	SetActorInvulnerable(PnActors[2], false);
	SetActorHealth(PnActors[2], 100.000000);
    if(fexist("swear.txt"))
	{
		new File:myFile,
		line[MAX_LEN],
		index=0;
		myFile=fopen("swear.txt",filemode:io_read);
		while(fread(myFile,line,sizeof line) && (index != MAX_ENTRY)) {
			if(strlen(line)>MAX_LEN) continue;
			StripNewLine(line);
			strmid(Swear[index],line,0,strlen(line),sizeof line);
			index++;
		}
	}

 

  • 0
Posted

Nu te-am pus sa postezi publicul aici, ti-am spus exact ce sa faci, cauta in el variabila string[   nu va cauta nimeni pentru tine decat daca sare in ochi, pe langa asta nici nu ai pus tot publicul

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
  • 0
Posted
Acum 1 oră, Mister a spus:

Nu te-am pus sa postezi publicul aici, ti-am spus exact ce sa faci, cauta in el variabila string[   nu va cauta nimeni pentru tine decat daca sare in ochi, pe langa asta nici nu ai pus tot publicul

Citat

public OnPropUpdate()
{
    new idx;
    new File: file2;
    new string[500];
     while (idx < sizeof(HouseInfo))
    {
        new coordsstring[500];
        format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
        HouseInfo[idx][hEntrancex],
        HouseInfo[idx][hEntrancey],
        HouseInfo[idx][hEntrancez],
        HouseInfo[idx][hExitx],
        HouseInfo[idx][hExity],
        HouseInfo[idx][hExitz],
        HouseInfo[idx][hHealthx],
        HouseInfo[idx][hHealthy],
        HouseInfo[idx][hHealthz],
        HouseInfo[idx][hArmourx],
        HouseInfo[idx][hArmoury],
        HouseInfo[idx][hArmourz],
        HouseInfo[idx][hOwner],
        HouseInfo[idx][hDiscription],
        HouseInfo[idx][hValue],
        HouseInfo[idx][hHel],
        HouseInfo[idx][hArm],
        HouseInfo[idx][hInt],
        HouseInfo[idx][hLock],
        HouseInfo[idx][hOwned],
        HouseInfo[idx][hRooms],
        HouseInfo[idx][hRent],
        HouseInfo[idx][hRentabil],
        HouseInfo[idx][hTakings],
        HouseInfo[idx][hVec],
        HouseInfo[idx][hVcol1],
        HouseInfo[idx][hVcol2],
        HouseInfo[idx][hDate],
        HouseInfo[idx][hLevel],
        HouseInfo[idx][hWorld]);
        if(idx == 0)
        {
            file2 = fopen("cfg/property.cfg", io_write);
        }
        else
        {
            file2 = fopen("cfg/property.cfg", io_append);
        }
        if(HouseInfo[idx][hOwned] == 1)
            {
                if(HouseInfo[idx][hRentabil] == 0)
                {
                    format(string, sizeof(string), "{99FFFF}Owner: {FFFFFF}%s \n{99FFFF}Level: {FFFFFF}%d \n{99FFFF}Descriere: {FFFFFF}%s \n{99FFFF}Valoare: {FFFFFF}%d \n{99FFFF}House ID: {FFFFFF}%d",HouseInfo[idx][hOwner],HouseInfo[idx][hLevel], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
                }
                else
                {
                    format(string, sizeof(string), "{99FFFF}Owner: {FFFFFF}%s \n{99FFFF}Level: {FFFFFF}%d \n{99FFFF}Rent: {FFFFFF}%d \n{99FFFF}Descriere: {FFFFFF}%s \n{99FFFF}Valoare: {FFFFFF}%d \n{99FFFF}ID: {FFFFFF}%d\n{99FFFF}Type: /rentroom",HouseInfo[idx][hOwner],HouseInfo[idx][hLevel], HouseInfo[idx][hRent], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
                }
            }
            else
            {
                format(string, sizeof(string), "{2EAD15}House For Sale! \n{2EAD15}Level: {FFFFFF}%d \n{2EAD15}Descriere: {FFFFFF}%s \n{2EAD15}Valoare: {FFFFFF}%d \n{2EAD15}ID: {FFFFFF}%d\n{2EAD15}Type: /buyhouse",HouseInfo[idx][hLevel], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
            }
            Update3DTextLabelText(HouseLabel[idx], 0xFFFFFFFF, string);

        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
    idx = 0;
    while (idx < sizeof(BizzInfo))
    {
        new coordsstring[500];
        format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
        BizzInfo[idx][bOwned],
        BizzInfo[idx][bOwner],
        BizzInfo[idx][bMessage],
        BizzInfo[idx][bExtortion],
        BizzInfo[idx][bEntranceX],
        BizzInfo[idx][bEntranceY],
        BizzInfo[idx][bEntranceZ],
        BizzInfo[idx][bExitX],
        BizzInfo[idx][bExitY],
        BizzInfo[idx][bExitZ],
        BizzInfo[idx][bLevelNeeded],
        BizzInfo[idx][bBuyPrice],
        BizzInfo[idx][bEntranceCost],
        BizzInfo[idx][bTill],
        BizzInfo[idx][bLocked],
        BizzInfo[idx][bInterior],
        BizzInfo[idx][bProducts],
        BizzInfo[idx][bMaxProducts],
        BizzInfo[idx][bPriceProd]);
        if(idx == 0)
        {
            file2 = fopen("cfg/bizz.cfg", io_write);
        }
        else
        {
            file2 = fopen("cfg/bizz.cfg", io_append);
        }
        if(BizzInfo[idx][bOwned] == 0)
        {
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15} For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[idx][bMessage],BizzInfo[idx][bLevelNeeded],BizzInfo[idx][bBuyPrice]);
        }
        else
        {
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF} /enter",BizzInfo[idx][bMessage],BizzInfo[idx][bOwner],BizzInfo[idx][bExtortion],BizzInfo[idx][bLevelNeeded],BizzInfo[idx][bEntranceCost],BizzInfo[idx][bBuyPrice]);
        }
        Update3DTextLabelText(BizLabel[idx] ,0x008080FF, string);

        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }
    idx = 0;
    while (idx < sizeof(SBizzInfo))
    {
        new coordsstring[256];
        format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
        SBizzInfo[idx][sbOwned],
        SBizzInfo[idx][sbOwner],
        SBizzInfo[idx][sbMessage],
        SBizzInfo[idx][sbExtortion],
        SBizzInfo[idx][sbEntranceX],
        SBizzInfo[idx][sbEntranceY],
        SBizzInfo[idx][sbEntranceZ],
        SBizzInfo[idx][sbLevelNeeded],
        SBizzInfo[idx][sbBuyPrice],
        SBizzInfo[idx][sbEntranceCost],
        SBizzInfo[idx][sbTill],
        SBizzInfo[idx][sbLocked],
        SBizzInfo[idx][sbInterior],
        SBizzInfo[idx][sbProducts],
        SBizzInfo[idx][sbMaxProducts],
        SBizzInfo[idx][sbPriceProd]);
        if(idx == 0)
        {
            file2 = fopen("cfg/sbizz.cfg", io_write);
        }
        else
        {
            file2 = fopen("cfg/sbizz.cfg", io_append);
        }
        if(SBizzInfo[idx][sbOwned] == 0)
        {
            format(string, sizeof(string), "{2EAD15}%s\n {2EAD15} For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[idx][sbMessage],SBizzInfo[idx][sbLevelNeeded],SBizzInfo[idx][sbBuyPrice]);
        }
        else
        {
            format(string, sizeof(string), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF} /enter",SBizzInfo[idx][sbMessage],SBizzInfo[idx][sbOwner],SBizzInfo[idx][sbExtortion],SBizzInfo[idx][sbLevelNeeded],SBizzInfo[idx][sbEntranceCost],SBizzInfo[idx][sbBuyPrice]);
        }
        Update3DTextLabelText(SBizLabel[idx] ,0x008080FF, string);

        fwrite(file2, coordsstring);
        idx++;
        fclose(file2);
    }

asta e?

  • 0
  • 0
Posted

String-ul l-am facut 500

public LoadProperty()
{
	new arrCoords[30][64];
	new strFromFile2[256];
	new File: file = fopen("cfg/property.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < sizeof(HouseInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, ',');
			HouseInfo[idx][hEntrancex] = floatstr(arrCoords[0]);
			HouseInfo[idx][hEntrancey] = floatstr(arrCoords[1]);
			HouseInfo[idx][hEntrancez] = floatstr(arrCoords[2]);
			HouseInfo[idx][hExitx] = floatstr(arrCoords[3]);
			HouseInfo[idx][hExity] = floatstr(arrCoords[4]);
			HouseInfo[idx][hExitz] = floatstr(arrCoords[5]);
			HouseInfo[idx][hHealthx] = strval(arrCoords[6]);
			HouseInfo[idx][hHealthy] = strval(arrCoords[7]);
			HouseInfo[idx][hHealthz] = strval(arrCoords[8]);
			HouseInfo[idx][hArmourx] = strval(arrCoords[9]);
			HouseInfo[idx][hArmoury] = strval(arrCoords[10]);
			HouseInfo[idx][hArmourz] = strval(arrCoords[11]);
			//printf("HouseInfo hEntrancez %f",HouseInfo[idx][hEntrancez]);
			strmid(HouseInfo[idx][hOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255);
			strmid(HouseInfo[idx][hDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255);
			HouseInfo[idx][hValue] = strval(arrCoords[14]);
			HouseInfo[idx][hHel] = strval(arrCoords[15]);
			HouseInfo[idx][hArm] = strval(arrCoords[16]);
			HouseInfo[idx][hInt] = strval(arrCoords[17]);
			HouseInfo[idx][hLock] = strval(arrCoords[18]);
			HouseInfo[idx][hOwned] = strval(arrCoords[19]);
			HouseInfo[idx][hRooms] = strval(arrCoords[20]);
			HouseInfo[idx][hRent] = strval(arrCoords[21]);
			HouseInfo[idx][hRentabil] = strval(arrCoords[22]);
			HouseInfo[idx][hTakings] = strval(arrCoords[23]);
			HouseInfo[idx][hVec] = strval(arrCoords[24]);
  	        if(HouseInfo[idx][hVec] == 457)
			{
				HouseInfo[idx][hVec] = 411;
			}
			HouseInfo[idx][hVcol1] = strval(arrCoords[25]);
			HouseInfo[idx][hVcol2] = strval(arrCoords[26]);
			HouseInfo[idx][hDate] = strval(arrCoords[27]);
			HouseInfo[idx][hLevel] = strval(arrCoords[28]);
			HouseInfo[idx][hWorld] = strval(arrCoords[29]);

			printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]);
			idx++;
		}
		fclose(file);
	}
	return 1;
}
public LoadBizz()
{
	new arrCoords[19][64];
	new strFromFile2[500];
	new File: file = fopen("cfg/bizz.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < sizeof(BizzInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, '|');
			BizzInfo[idx][bOwned] = strval(arrCoords[0]);
			strmid(BizzInfo[idx][bOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
			strmid(BizzInfo[idx][bMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
			strmid(BizzInfo[idx][bExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
			BizzInfo[idx][bEntranceX] = floatstr(arrCoords[4]);
			BizzInfo[idx][bEntranceY] = floatstr(arrCoords[5]);
			BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[6]);
			BizzInfo[idx][bExitX] = floatstr(arrCoords[7]);
			BizzInfo[idx][bExitY] = floatstr(arrCoords[8]);
			BizzInfo[idx][bExitZ] = floatstr(arrCoords[9]);
			BizzInfo[idx][bLevelNeeded] = strval(arrCoords[10]);
			BizzInfo[idx][bBuyPrice] = strval(arrCoords[11]);
			BizzInfo[idx][bEntranceCost] = strval(arrCoords[12]);
			BizzInfo[idx][bTill] = strval(arrCoords[13]);
			BizzInfo[idx][bLocked] = strval(arrCoords[14]);
			BizzInfo[idx][bInterior] = strval(arrCoords[15]);
			BizzInfo[idx][bProducts] = strval(arrCoords[16]);
			BizzInfo[idx][bMaxProducts] = strval(arrCoords[17]);
			BizzInfo[idx][bPriceProd] = strval(arrCoords[18]);
			printf("BizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
			idx,
			BizzInfo[idx][bOwner],
			BizzInfo[idx][bMessage],
			BizzInfo[idx][bEntranceCost],
			BizzInfo[idx][bTill],
			BizzInfo[idx][bProducts],
			BizzInfo[idx][bMaxProducts],
			BizzInfo[idx][bInterior]);
			idx++;
		}
		fclose(file);
	}
	return 1;
}


public LoadSBizz()
{
	new arrCoords[16][64];
	new strFromFile2[500];
	new File: file = fopen("cfg/sbizz.cfg", io_read);
	if (file)
	{
		new idx;
		while (idx < sizeof(SBizzInfo))
		{
			fread(file, strFromFile2);
			split(strFromFile2, arrCoords, '|');
			SBizzInfo[idx][sbOwned] = strval(arrCoords[0]);
			strmid(SBizzInfo[idx][sbOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
			strmid(SBizzInfo[idx][sbMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
			strmid(SBizzInfo[idx][sbExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
			SBizzInfo[idx][sbEntranceX] = floatstr(arrCoords[4]);
			SBizzInfo[idx][sbEntranceY] = floatstr(arrCoords[5]);
			SBizzInfo[idx][sbEntranceZ] = floatstr(arrCoords[6]);
			SBizzInfo[idx][sbLevelNeeded] = strval(arrCoords[7]);
			SBizzInfo[idx][sbBuyPrice] = strval(arrCoords[8]);
			SBizzInfo[idx][sbEntranceCost] = strval(arrCoords[9]);
			SBizzInfo[idx][sbTill] = strval(arrCoords[10]);
			SBizzInfo[idx][sbLocked] = strval(arrCoords[11]);
			SBizzInfo[idx][sbInterior] = strval(arrCoords[12]);
			SBizzInfo[idx][sbProducts] = strval(arrCoords[13]);
			SBizzInfo[idx][sbMaxProducts] = strval(arrCoords[14]);
			SBizzInfo[idx][sbPriceProd] = strval(arrCoords[15]);
			printf("SBizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
			idx,
			SBizzInfo[idx][sbOwner],
			SBizzInfo[idx][sbMessage],
			SBizzInfo[idx][sbEntranceCost],
			SBizzInfo[idx][sbTill],
			SBizzInfo[idx][sbProducts],
			SBizzInfo[idx][sbMaxProducts],
			SBizzInfo[idx][sbInterior]);
			idx++;
		}
		fclose(file);
	}
	return 1;
}

SAU ASTA?

  • 0
  • 0
Posted

Modifica ce ai tu la ongamemodeinit cu asta

 

	new stringh[1024];
	for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    if(HouseInfo[h][hOwned] == 0)
        {
        AddStaticPickup(19470, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        pickups++;
        format(stringh, sizeof(stringh), "{FFFFFF}For Sale! \n{FFFFFF}Info: {FFFFFF}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Scrie {FF0000}/buyhouse",HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel]);
        }

        if(HouseInfo[h][hOwned] == 1)
        {

               AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            if(HouseInfo[h][hRentabil] == 0)
            {
                format(stringh, sizeof(stringh), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel]);
            }
            else
            {
                format(stringh, sizeof(stringh), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Rent: {8080FF}%d $ \n{FFFFFF}Scrie {FF0000}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel], HouseInfo[h][hRent]);
            }
        }

        HouseLabel[h] = Create3DTextLabel(stringh, 0x008080FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            AddStaticPickup(19470, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(stringh, sizeof(stringh), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
            format(stringh, sizeof(stringh), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]);
        }
        BizLabel[h] = Create3DTextLabel(string, 0x008080FF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 1);
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            AddStaticPickup(19470, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(stringh, sizeof(stringh), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            pickups++;
            format(stringh, sizeof(stringh), "{99FFFF}%s\n {99FFFF}Owner: {FFFFFF}%s\n {99FFFF}Exto: {FFFFFF}%s\n {99FFFF}Level: {FFFFFF}%d\n {99FFFF}Fee: {FFFFFF}%d\n {99FFFF}Valoare: {FFFFFF}%d\n{99FFFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]);
        }
        SBizLabel[h] = Create3DTextLabel(stringh, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1);
    }

 

  • Upvote 1
  • 0
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.