14.11.2012, 13:26
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:
Please help, thank you...
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;
}