15.09.2013, 15:04
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;
}