Created
June 22, 2017 12:30
-
-
Save Zaur-Lumanov/d978cccb520da8508d9284506e2d1dbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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