[Pedido] Nick Name
#6

pawn Code:
tirarUnderline(nome[]) {
    static i;
    for(i = (strlen(nome) - 1); i > -1; --i) {
        if(nome[i] == '_') {
            nome[i] = ' ';
        }
    }
    return nome;
}


// Exemplo de uso:
public OnPlayerConnect(playerid) {

    static playername[25], string[64];
    GetPlayerName(playerid, playername, sizeof playername);

    format(string, sizeof string, "Server: %s se conectou.", tirarUnderline(playername));
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply


Messages In This Thread
Nick Name - by ipsLuan - 15.09.2013, 13:53
Re: Nick Name - by SkullFire - 15.09.2013, 14:13
Re: Nick Name - by Don_Speed - 15.09.2013, 14:47
Re: Nick Name - by Juniiro3 - 15.09.2013, 14:57
Re: Nick Name - by ipsLuan - 15.09.2013, 15:01
Re: Nick Name - by zPain - 15.09.2013, 15:04
Re: Nick Name - by ipsLuan - 15.09.2013, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)