how to remvoe (_) underline for rp servers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to remvoe (_) underline for rp servers (
/showthread.php?tid=246913)
how to remvoe (_) underline for rp servers -
rinori - 06.04.2011
who can explain me how to remove underline _ from the name.
"
Jack Barron says: blabla
"
And not "Jack_Barron says: bl.."
Re: how to remvoe (_) underline for rp servers -
Markx - 06.04.2011
Use search next time...there is a TuT
Re: how to remvoe (_) underline for rp servers -
Biesmen - 06.04.2011
Search for the sign "_" in the string, then replace it with " ".
I found a code for you.
pawn Код:
GiveNameSpace(str[])
{
new strl;
strl=strlen(str);
while(strl--) {
if(str[strl]=='_') str[strl]=' ';
}
return 0;
}
(PR-RP)
Usage:
pawn Код:
new string[4];
string = "R_L";
GiveNameSpace(string);
return string; // will return "R L"
For the name:
pawn Код:
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".
p/s What? We have to wait 2 minutes, again, to post?