Inserting a character into a string.
#2

Use str_replace.

pawn Code:
str_replace("1 /*the character you  want to replace*/ ", "_1 /* what will replace the character */ ", "trololo1o1o1olo1 /* in which string do you want this to happen*/ ");
If you will do this in a printf line, this will output the "trololo_1o_1o_1olo_1" like you said
Reply


Messages In This Thread
Inserting a character into a string. - by iPLEOMAX - 24.08.2011, 10:21
Re: Inserting a character into a string. - by Wesley221 - 24.08.2011, 10:30
Re: Inserting a character into a string. - by =WoR=Varth - 24.08.2011, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)