[HELP] Remove the underscore in players names
#8

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
stock RemoveUnderScore(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}

public OnPlayerText(playerid,text[])
{
    new string[128];
    format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
    SendClientMessageToAll(color,string);
    return 0;
}
Thanks, it works!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)