Jump to content
  • 0

Problema case si bizz-uri


eXplosioN SAMP

Question

Problema intalnita (descriere): Cand pornesc serverul (GF) casele si bizz-urile apar ceva de genu For Sale {FF , doar daca editez o casa sau intru in ea , isi revin toate .. nu stiu ce sa fac sa fie toate bune ..
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): il pun in reply daca e nevoie .
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:  Am incercat , am editat din pwn aia cu textul de la case si bizz-uri  si m-am uitat putin prin property.cfg , dar chiar nu stiu , sunt convins ca multi stiti problema ..

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
	new string2[758];
	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(string2, sizeof(string2), "{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(string2, sizeof(string2), "{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(string2, sizeof(string2), "{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(string2, 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(string2, sizeof(string2), "{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(string2, sizeof(string2), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]);
        }
        BizLabel[h] = Create3DTextLabel(string2, 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(string2, sizeof(string2), "{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(string2, sizeof(string2), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]);
        }
        SBizLabel[h] = Create3DTextLabel(string2, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1);
    }

 

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

  • 0
Quote

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), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}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), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}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);
    }

 

Link to comment
Share on other sites

  • 0

Cauta cum e creata variabila string si mareste vectorul adica din new string [100]   faci  new string [200]

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.