20.05.2010, 11:57
How can I remove the "_" in names? that is, when writing in chat eg Firstname_Lastname not occur, appear FirstName Lastname .. I hope you understand
Thanks
Thanks
Originally Posted by ikarus❶❸❸❼
I think it's not possible, im not fully sure.
|
stock ReturnPlayerName( playerid )
{
new
NameString[ MAX_PLAYER_NAME ],
stringPos;
GetPlayerName( playerid, NameString, MAX_PLAYER_NAME );
stringPos = strfind( NameString, "_" );
NameString[ stringPos ] = ' ';
return NameString;
}
stock GetPlayerNameEx(playerid)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
for(new i; i < MAX_PLAYER_NAME; i++) if (string[i] == '_') string[i] = ' ';
return string;
}