ID:168953
 
How would I be able todo this? i need it so if a messege contains a space, it replaces the space with a "+"
Deadron has a great library for dealing with text.
In response to Jon88
Its not working.
    Messege()
src.Messege = input("What is the messege? ","Messege?",usr.Messege)
src<<"The selected user is now [src.Messege]."
var/search_string = " "
var/replacement = "+"
dd_replacetext(src.Messege, search_string, replacement)
In response to Strawgate
dd_replaceText returns a string with the new text. It doesn't actually change the variables you pass it.
In response to Jon88
Thanks!!!