06.04.2011, 16:45
who can explain me how to remove underline _ from the name.
"
Jack Barron says: blabla
"
And not "Jack_Barron says: bl.."
"
Jack Barron says: blabla
"
And not "Jack_Barron says: bl.."
GiveNameSpace(str[])
{
new strl;
strl=strlen(str);
while(strl--) {
if(str[strl]=='_') str[strl]=' ';
}
return 0;
}
new string[4];
string = "R_L";
GiveNameSpace(string);
return string; // will return "R L"
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GiveNameSpace(playername);
return playername; // If your name was "Haha_Lol", it will return "Haha Lol".