ID:174890
 
How come this coding doesnt delete the {[usr.guild]} from the name? Here's my coding:
            Guild_Disband()
switch(alert("Are you sure you want to delete [guild]?","","Yes","No"))
if("Yes")
for(var/mob/M in Guildmembers)
M.guild = null
M.name -= " {[usr.guild]}"
usr.guild = null
usr.name -= " {[guild]}"
usr.Guildmembers = null
Strings don't work like that. Try using Deadron's TextHandling library (specifically, the dd_replacetext() function) instead.