[DUV] Retirar Underline..
#5

Estou com sono jб, nгo deu pra testar, qualquer coisa os outros membros do fуrum o ajudam



pawn Код:
new Nick2[MAX_PLAYER_NAME], Nick3[MAX_PLAYER_NAME];
    if(strfind(pNome(playerid), "_", true) == -1)
    {
        format(Nick2, sizeof(Nick2), pNome(playerid));
        strdel(pNome(playerid),0,GetPosStringChar(pNome(playerid),"_"));
        format(Nick3, sizeof(Nick3), pNome(playerid));
        strdel(Nick2,GetPosStringChar(pNome(playerid),"_"),strlen(Nick2));
        format(pNome(playerid), MAX_PLAYER_NAME, "%s %s",Nick3,Nick2);
    }

Coloque no Fim do GM tambйm:

pawn Код:
stock GetPosStringChar(texto[],caractere[])//Crйditos б [FeK]Ken ou rjjj, por essa funзгo =]
{
    if(strfind(texto, caractere, true) != -1)
    {
        for(new x = 0; x <= strlen(texto); x++)
        {
            strdel(texto, 0, x);
            if(strcmp(texto,caractere,true)==0)
            {
                return x;
            }
        }
    }
    return 1;
}

Espero ter ajudado
Reply


Messages In This Thread
[DUV] Retirar Underline.. - by Ryan_Howllet - 19.01.2011, 00:40
Re: [DUV] Retirar Underline.. - by Fabricio_Rios - 19.01.2011, 00:49
Re: [DUV] Retirar Underline.. - by Yakushi Icefox - 19.01.2011, 01:00
Re: [DUV] Retirar Underline.. - by Ryan_Howllet - 19.01.2011, 02:09
Re: [DUV] Retirar Underline.. - by rjjj - 19.01.2011, 03:11
Re: [DUV] Retirar Underline.. - by Trinix_PoS [Bizu] - 19.01.2011, 11:13
Re: [DUV] Retirar Underline.. - by Ryan_Howllet - 19.01.2011, 13:29
Re: [DUV] Retirar Underline.. - by Macintosh - 19.01.2011, 13:48
Respuesta: [DUV] Retirar Underline.. - by ipsBruno - 19.01.2011, 13:55
Re: [DUV] Retirar Underline.. - by Ricop522 - 19.01.2011, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)