Removing "_" from player names
#1

When I asked a friend of mine how to remove them, he gave me this, but it's still not working and instead of names appearing as "John Smith", they appear as "John_Smith"

pawn Код:
stock GetNameEx(playerid)
{
    new Name[MAX_PLAYER_NAME];
    if(IsPlayerConnected(playerid))
    {
        new i;
        GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
        while ((i = strfind(Name, "_", false, i)) != -1)
            Name[i] = ' ';
    }
    return Name;
}
Reply


Messages In This Thread
Removing "_" from player names - by Noles2197 - 18.01.2013, 00:44
Re: Removing "_" from player names - by Pooh7 - 18.01.2013, 00:49
Re: Removing "_" from player names - by SchurmanCQC - 18.01.2013, 00:50
Re: Removing "_" from player names - by Glad2BeHere - 18.01.2013, 04:11
Re: Removing "_" from player names - by ViruZz - 18.01.2013, 04:12
Re: Removing "_" from player names - by Glad2BeHere - 18.01.2013, 04:40

Forum Jump:


Users browsing this thread: 1 Guest(s)