How to remove "_" from RP Names
#3

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;
}
Use that function instead of GetPlayerName where you don't want to have the '_', just watch out so you don't change the sections that need names to have underscores.
Reply


Messages In This Thread
How to remove "_" from RP Names - by Mr.Black - 16.07.2011, 22:26
Re: How to remove "_" from RP Names - by OUL - 16.07.2011, 22:28
Re: How to remove "_" from RP Names - by SWEMike - 16.07.2011, 22:30
Re: How to remove "_" from RP Names - by Kush - 16.07.2011, 22:44
Re: How to remove "_" from RP Names - by Mr.Black - 17.07.2011, 06:12
Re: How to remove "_" from RP Names - by Flyfishes - 17.07.2011, 06:18

Forum Jump:


Users browsing this thread: 2 Guest(s)