Jump to content
  • 0

[Problme] Text Biz-uri/Case


Mase

Question

Nick: Mase

Problema: Cand dau buyhouse / buybiz imi arata ca este cumparata dar imi apare si ca poate fi de vanzare, si nu sunt 2 case/biz-uri in acelasi loc, am verificat

Erori / warnings: -

Lini/script: Nu cred ca este nevoie

Ai incercat sa rezolvi singur ?: Da

[pawn] new bstr[400];

for(new h = 0; h < sizeof(HouseInfo); h++)

    {

        if(HouseInfo[h][hOwned] == 0)

        {

            format(bstr, sizeof(bstr), "Aceasta casa este la Vanzare\nInfo: {FFFFFF}%s\n{06BF56}Pret: {FFFFFF}$ %d\n{06BF56}Level: {FFFFFF}%d\n{06BF56}pentru a cumpara casa foloseste /buyhouse.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

            HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            pickups++;

        }

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

        {

            if(HouseInfo[h][hRentabil] == 0)

            {

            format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel]);

            HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0);

            pickups++;

}

else

{

            format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d\n{06BF56}Inchiriat:${FFFFFF}%d\nPentru a sta in chirie foloseste /rentroom.",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]);

            HouseInfo[h][hTextInfo] = Create3DTextLabel(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0);

            pickups++;

}

}

    }

    for(new h = 0; h < sizeof(BizzInfo); h++)

    {

        if(BizzInfo[h][bOwned] == 0)

        {

            format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\nAcest Business este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret: {FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara bizzul foloseste /buybiz",h,BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);

            BizzInfo[h][bTextInfo] = Create3DTextLabel(bstr,0x0F90FAFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1274, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

            pickups++;

        }

        if(BizzInfo[h][bOwned] == 1)

        {

            format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Bizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare: {FFFFFF}%d\n{0F90FA}Foloseste /enter pentru a intra.",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost]);

            BizzInfo[h][bTextInfo] = Create3DTextLabel(bstr,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

            pickups++;

        }

    }

    for(new h = 0; h < sizeof(SBizzInfo); h++)

    {

        if(SBizzInfo[h][sbOwned] == 0)

        {

            format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\nAcest SBusiness este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret:{FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara sbizzul foloseste /buybiz.",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);

            SBizzInfo[h][sbTextInfo] = Create3DTextLabel(bstr,0x0F90FAFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1274, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

            pickups++;

        }

        if(SBizzInfo[h][sbOwned] == 1)

        {

            format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Sbizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare:{FFFFFF}%d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost]);

            SBizzInfo[h][sbTextInfo] = Create3DTextLabel(bstr,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

            pickups++;

        }

    }[/pawn]

Cr2AfQj.png

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Incearca cu Update3DTextLabelText

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

[pawn] new bstr[400];

for(new h = 0; h < sizeof(HouseInfo); h++)

    {

        if(HouseInfo[h][hOwned] == 0)

        {

            format(bstr, sizeof(bstr), "Aceasta casa este la Vanzare\nInfo: {FFFFFF}%s\n{06BF56}Pret: {FFFFFF}$ %d\n{06BF56}Level: {FFFFFF}%d\n{06BF56}pentru a cumpara casa foloseste /buyhouse.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

            HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            pickups++;

        }

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

        {

            if(HouseInfo[h][hRentabil] == 0)

            {

            format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel]);

            HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0);

            pickups++;

}

else

{

            format(bstr, sizeof(bstr), "House %d\nDetinator: {FFFFFF}%s\n{06BF56}Level:{FFFFFF}%d\n{06BF56}Inchiriat:${FFFFFF}%d\nPentru a sta in chirie foloseste /rentroom.",h,HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]);

            HouseInfo[h][hTextInfo] = Update3DTextLabelText(bstr,0x06BF56FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1);

            AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

            //CreateDynamicMapIcon(HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez],32,0);

            pickups++;

}

}

    }

    for(new h = 0; h < sizeof(BizzInfo); h++)

    {

        if(BizzInfo[h][bOwned] == 0)

        {

            format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\nAcest Business este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret: {FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara bizzul foloseste /buybiz",h,BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);

            BizzInfo[h][bTextInfo] = Update3DTextLabelText(bstr,0x0F90FAFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1274, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

            pickups++;

        }

        if(BizzInfo[h][bOwned] == 1)

        {

            format(bstr, sizeof(bstr), "{0F90FA}Bizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Bizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare: {FFFFFF}%d\n{0F90FA}Foloseste /enter pentru a intra.",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost]);

            BizzInfo[h][bTextInfo] = Update3DTextLabelText(bstr,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

            pickups++;

        }

    }

    for(new h = 0; h < sizeof(SBizzInfo); h++)

    {

        if(SBizzInfo[h][sbOwned] == 0)

        {

            format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\nAcest SBusiness este la Vanzare\nNume: {FFFFFF}%s\n{0F90FA}Pret:{FFFFFF}$ %d\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Pentru a cumpara sbizzul foloseste /buybiz.",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);

            SBizzInfo[h][sbTextInfo] = Update3DTextLabelText(bstr,0x0F90FAFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1274, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

            pickups++;

        }

        if(SBizzInfo[h][sbOwned] == 1)

        {

            format(bstr, sizeof(bstr), "{0F90FA}SBizz %d\n{FFFFFF}%s\n{0F90FA}Detinator Sbizz:{FFFFFF}%s\n{0F90FA}Level: {FFFFFF}%d\n{0F90FA}Intrare:{FFFFFF}%d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost]);

            SBizzInfo[h][sbTextInfo] = Update3DTextLabelText(bstr,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,15,0,1);

            AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

            pickups++;

        }

    }[/pawn]

Errori

[pawn]D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50183) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50183) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50192) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50192) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50200) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50200) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50212) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50212) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50219) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50219) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50229) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50229) : warning 213: tag mismatch

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50236) : error 035: argument type mismatch (argument 1)

D:\HightGame\By MASE - RPG\gamemodes\hightgame.pwn(50236) : warning 213: tag mismatch

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.[/pawn]

Link to comment
Share on other sites

Uita-te mai atent la ce parametri foloseste Update3DTextLabelText

[pawn]Update3DTextLabelText(mylabel, 0xFFFFFFFF, "New text.");[/pawn]

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

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.