22.06.2012, 13:18
I
Think
You
Can.
Something like this might work.
EDIT: Or if you don't want to change the players name for any reason.
Think
You
Can.
Something like this might work.
pawn Код:
RemoveUnderscoreFromName(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
for(new i=0; i < MAX_PLAYER_NAME; ++i)
{
if(pName[i] == EOS)break;
if(pName[i] == '_') pName[i] = ' ';
}
SetPlayerName(playerid, pName);
}
pawn Код:
GetPlayerRpName(playerid)//couldn't think of a better name that is shorter than this.
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
for(new i=0; i < MAX_PLAYER_NAME; ++i)
{
if(pName[i] == EOS)break;
if(pName[i] == '_') pName[i] = ' ';
}
return pName;
}

