Player Name!!!
#6

pawn Код:
AutoCorrect(name[])
{
    new i = 1;

    name[0] = toupper(name[0]);

    while(name[i])
    {
        name[i] = tolower(name[i]);
        i++;
    }

    if((i = strfind(name,"_",true,2)) != -1 && name[i+1] != 0)
        name[i+1] = toupper(name[i+1]);

    return name;
}
usage
pawn Код:
new Nick[25];
GetPlayerName(playerid,Nick,25);
AutoCorrect(Nick);
Reply


Messages In This Thread
Player Name!!! - by MasonSFW - 17.05.2014, 00:09
Re: Player Name!!! - by Spartaaaaa - 17.05.2014, 00:42
Re : Player Name!!! - by tooq - 17.05.2014, 00:45
Re : Player Name!!! - by Ramoboss - 17.05.2014, 00:57
Re: Player Name!!! - by MasonSFW - 17.05.2014, 01:03
Re: Player Name!!! - by Jefff - 17.05.2014, 01:30
Re: Player Name!!! - by MasonSFW - 17.05.2014, 03:10
Re: Player Name!!! - by MasonSFW - 17.05.2014, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)