Name with dots
#1

I want this function to return something like this:

MyName ..........

But it doesn't work, it just returns my normal name without the dots.

What's wrong:

pawn Код:
stock GetNameWithDots(playerid)
{
    new name[MAX_PLAYER_NAME];

    if(IsPlayerConnectedAndLoggedIn(playerid))
    {
        GetPlayerName(playerid, name, sizeof(name));
       
        new start = strlen(name) + 1;
       
        for(new i = start; i < MAX_PLAYER_NAME; i++)
        {
            name[i] = '.';
        }
    }
   
    return name;
}
Please help, thank you...
Reply


Messages In This Thread
Name with dots - by Whizion - 14.11.2012, 13:26
Re: Name with dots - by SuperViper - 14.11.2012, 14:15
Re: Name with dots - by Whizion - 14.11.2012, 14:39

Forum Jump:


Users browsing this thread: 3 Guest(s)