Author Topic: Replacing letters.  (Read 364 times)

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, "\"");}

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.

strReplace(%str,"\"","\\\"");
« Last Edit: July 04, 2011, 05:41:49 PM by General »

strReplace(%str,"\"","\\\"");

Your a legend :D
He totally didn't ask me to say this :D