SA-MP Forums Archive
[Ajuda] Cores nas Info das Casas - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Cores nas Info das Casas (/showthread.php?tid=285304)



[Ajuda] Cores nas Info das Casas - wallacematheus - 23.09.2011

Tipo coloquei colorido as info das casas, mais sу que quando termino e copilo normal quando vou la nas casas ele aparece tudo normal mais a ultima linha fica imcompleta tipo era pra ficar assim

Para comprar digite /comprarcasa

mais ficam assim

Para comprar digite /comp

PHP код:
    //Create3dTexts();
    
for(new 0sizeof(HouseInfo); h++)
{
    if(
HouseInfo[h][hOwned] == 0) {
        
AddStaticPickup(12732HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        
format(gstringsizeof(gstring), "{33FF00}Casa A Venda\nTipo: {FF0000}%s\n{33FF00}Valor: {FF0000}R$%d\n{33FF00}Nivel: {FF0000}%d\nPara comprar digite /comprarcasa",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
        
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
    }
    if(
HouseInfo[h][hOwned] == 1) {
        
AddStaticPickup(13182HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
        if(
HouseInfo[h][hRentabil] == 0) {
            
format(gstringsizeof(gstring), "{33FF00}Dono: {FF0000}%s\n{33FF00}Nivel: {FF0000}%d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
            
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
        }
        else {
            
format(gstringsizeof(gstring), "{33FF00}Dono: {FF0000}%s\n{33FF00}Aluguel: {FF0000}R$%d\n{33FF00}Nivel: {FF0000}%d\nDigite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
            
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
        }
    }




Re: [Ajuda] Cores nas Info das Casas - Josma_cmd - 23.09.2011

Aumenta o valor da gstring.
Tipo, se for new gstring[128]; coloca new gstring[200]; ou o valor que achar necessбrio(Й aconselhбvel que conte as cells).


Re: [Ajuda] Cores nas Info das Casas - [O.z]Caroline - 23.09.2011

procure por gstring
e almente o valor que estб entre os [ ].
exemplo:
pawn Код:
new gstring[256];



Re: [Ajuda] Cores nas Info das Casas - wallacematheus - 23.09.2011

Quando digito /comprarcasa ou /vendercasa a infocasa some ai so volta quando dou gmx mais se comprar ou vender dnv fica do mesmo jeito sumindo


Re: [Ajuda] Cores nas Info das Casas - Vai_Besta - 23.09.2011

Use
pawn Код:
Update3DTextLabelText



Re: [Ajuda] Cores nas Info das Casas - wallacematheus - 23.09.2011

pawn Код:
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11450) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11450) : warning 213: tag mismatch
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11456) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11456) : warning 213: tag mismatch
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11460) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11460) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
os erros deu onde eu troquei por Update3DTextLabelText


Re: [Ajuda] Cores nas Info das Casas - Vai_Besta - 23.09.2011

Quote:
Originally Posted by wallacematheus
Посмотреть сообщение
pawn Код:
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11450) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11450) : warning 213: tag mismatch
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11456) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11456) : warning 213: tag mismatch
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11460) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(11460) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
os erros deu onde eu troquei por Update3DTextLabelText

Nao era pra trocar, era para adcionar



Re: [Ajuda] Cores nas Info das Casas - Bruno Pereira - 23.09.2011

Almente as cйlula da variбvel. Exemplo:
new string[256];


Re: [Ajuda] Cores nas Info das Casas - Lуs - 24.09.2011

OFF:

LOL, Bruno, vocк tem exatamente 666 de posts. Oo


Re: [Ajuda] Cores nas Info das Casas - Y_Baby - 24.09.2011

LOOOL 666 posts PQP isso й coisz do capeta "-'