Skip to content

Instantly share code, notes, and snippets.

@Zaur-Lumanov
Created June 22, 2017 12:30
Show Gist options
  • Save Zaur-Lumanov/d978cccb520da8508d9284506e2d1dbb to your computer and use it in GitHub Desktop.
Save Zaur-Lumanov/d978cccb520da8508d9284506e2d1dbb to your computer and use it in GitHub Desktop.
stock _replace(nickname[], output[])
{
new nicklen = strlen(nickname);
for (new i; i < nicklen; i++)
{
if (nickname[i] == '_')
nickname[i] = ' ';
}
format(output, 24, "%s", nickname);
return 1;
}
main() {
new newname[24];
_replace("Zaur_Lumanov", newname);
print(newname);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment