Blockland Forums > Modification Help
Replacing letters.
Pages: (1/1)
Gambsy:
Right so, for cliensided mod i need the script to be able to set " to \" seeing as annoyingly you cant use an odd amount of " 's even if they are intended as text not to indicate text.
so far i got
--- Quote --- if(%word $= "\"") {%text = setWord(%text, %i, "\"");}
--- End quote ---
however this brings up complications as it detects \" not " and as far as ime aware you cant use a single quote mark to denote it but have to use \" and furthermore ime not sure the function just to replace the letters seeing as at the moment it detects the word, any help would be appreciated.
General:
strReplace(%str,"\"","\\\"");
Gambsy:
--- Quote from: General on July 04, 2011, 05:33:45 PM ---strReplace(%str,"\"","\\\"");
--- End quote ---
Your a legend :D
He totally didn't ask me to say this :D
Pages: (1/1)