Replace '_' with ' ' - 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: Replace '_' with ' ' (
/showthread.php?tid=154902)
Replace '_' with ' ' -
Antonio [G-RP] - 16.06.2010
What is a quick and simple function to replace underscore with a space?
Re: Replace '_' with ' ' -
bigcomfycouch - 16.06.2010
pawn Код:
ReturnPlayerName(playerid, no_underscore = 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(no_underscore) for(new z = 0; z < MAX_PLAYER_NAME; z++) if(name[z] == '_') name[z] = ' ';
return name;
}