SA-MP Forums Archive
[Ajuda] Letras nгo querem ir '-' - 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] Letras nгo querem ir '-' (/showthread.php?tid=418764)



Letras nгo querem ir '-' - AlucardSnow - 25.02.2013

Tava com saudades de pedir ajuda aqui (zoa)

Galera й na mensagem de comprar casa, nгo ta indo todas as palavras, tentei achar strval e strlen perto dessas funзхes mais nem achei, nem nada relacionado as letras.
Poderiam me ajudar?

Olha a imagem:
Caso a imagem bugue o link: /imageshack/img593/7201/samp084az.png

Linha da mensagem
pawn Код:
#define TextCasaVenda                    "{0DFF00}Brasil Halls Life{FFFFFF}\nModelo: %s\nPreзo: R$%d\nNivel: %d\nID: %d\nPara comprar digite /comprarcasa"
Linhas relacionada a mensagem ou perto.
pawn Код:
new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    for(new c=0;c<CAR_AMOUNT;c++){Gas[c] = GasMax;}
    donoestacao = 0;
    donocasarao = 0;
    donoFavela = 0;
    donoskate = 0;
    donoaero = 0;
    donopark = 0;
    PlayerHaul[390][pCapasity] = 100;
    PlayerHaul[391][pCapasity] = 100;
    PlayerHaul[392][pCapasity] = 50;
    PlayerHaul[393][pCapasity] = 50;
    //LoadVendas();
    //>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<|
    News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
    format(string, sizeof(string), "Nada");
    strmid(News[hAdd1], string, 0, strlen(string), 255);
    strmid(News[hAdd2], string, 0, strlen(string), 255);
    strmid(News[hAdd3], string, 0, strlen(string), 255);
    strmid(News[hAdd4], string, 0, strlen(string), 255);
    strmid(News[hAdd5], string, 0, strlen(string), 255);
    format(string1, sizeof(string1), "Ninguem");
    strmid(News[hContact1], string1, 0, strlen(string1), 255);
    strmid(News[hContact2], string1, 0, strlen(string1), 255);
    strmid(News[hContact3], string1, 0, strlen(string1), 255);
    strmid(News[hContact4], string1, 0, strlen(string1), 255);
    strmid(News[hContact5], string1, 0, strlen(string1), 255);
    //>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=<|
    for(new i = 0; i < sizeof(CreatedCars); i++){CreatedCars[i] = 0;}
    for(new i = 0; i <= sizeof(Peds)-1; i++){AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);}
    for(new h = 0; h < sizeof(HouseInfo); h++){ if(HouseInfo[h][hOwned] == 0){
    AddStaticPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
    pickups++;
    format(gstring, sizeof(gstring), TextCasaVenda,HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel],h);
    HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);}
    if(HouseInfo[h][hOwned] == 1){AddStaticPickup(1318, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
    pickups++;
    if(HouseInfo[h][hRentabil] == 0){
    format(gstring, sizeof(gstring), TextCasa,HouseInfo[h][hOwner],HouseInfo[h][hLevel],h);
    HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);}
    else{format(gstring, sizeof(gstring), TextCasaAl,HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel],h);
    HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);}}}
    for(new h = 0; h < sizeof(BizzInfo); h++){
    if(BizzInfo[h][bOwned] == 0){AddStaticPickup(1272, 23, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
    pickups++;
    format(gstring, sizeof(gstring), TextEmpresaVenda,BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded],h);
    BizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);}
    if(BizzInfo[h][bOwned] == 1){
    AddStaticPickup(1318, 23, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
    pickups++;
    format(gstring, sizeof(gstring), TextEmpresa,BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded],h);
    BizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);}}
    for(new h = 0; h < sizeof(SBizzInfo); h++){
    if(SBizzInfo[h][sbOwned] == 0){
    AddStaticPickup(1272, 23, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
    pickups++;
    format(gstring, sizeof(gstring), TextMEmpresaVenda,SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded],h);
    SBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);}
    if(SBizzInfo[h][sbOwned] == 1){
    AddStaticPickup(1318, 23, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
    pickups++;
    format(gstring, sizeof(gstring), TextMEmpresa,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded],h);
    SBizzLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);}}
pawn Код:
public Atualizar3Dtexts()
{
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        Delete3DTextLabel(HouseLabel[h]);
        if(HouseInfo[h][hOwned] == 0)
        {
            format(gstring, sizeof(gstring), TextCasaVenda,HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel],h);
            HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            if(HouseInfo[h][hRentabil] == 0)
            {
                format(gstring, sizeof(gstring), TextCasa,HouseInfo[h][hOwner],HouseInfo[h][hLevel],h);
                HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
            }
            else
            {
                format(gstring, sizeof(gstring), TextCasaAl,HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel],h);
                HouseLabel[h] = Create3DTextLabel(gstring,COLOR_AZULBB,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
            }
        }
    }
Qualquer informaзгo adicional que precisarem eu irei informar.
Eu sei que meu portuguкs da cansкr =)


Re: Letras nгo querem ir '-' - ViniBorn - 25.02.2013

Veja o tamanho de gstring, talvez nгo seja grande o bastante


Re: Letras nгo querem ir '-' - AlucardSnow - 25.02.2013

Consegui resolver.
+rep