Auto Replacer string character to asterisk or "x"
#6

This is just a quick one that I'm typing up now, it's nothing special and it's pretty average code.
pawn Код:
for(new i = 0; i < strlen(string); i++) if(string[i] != ' ') string[i] = '*';
Example:
pawn Код:
new hstr[20] = "Big Fat Black Woman";
for(new i = 0; i < strlen(hstr); i++) if(hstr[i] != ' ') hstr[i] = '*';
printf("%s", hstr);
Output:
Код:
Big Fat Black Woman
*** *** ***** *****
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)