\ before ', \ instead of " - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: \ before ', \ instead of " (
/showthread.php?tid=452719)
\ before ', \ instead of " -
Seven_of_Nine - 22.07.2013
Hi,
I've ran into a really frustrating issue which I cannot diagnose.
Every time you write " in chat, you get \ instead, and when you write ', you get \'.
For example:
Код:
hello" -> hello\
don't -> don\'t
Also, when \" is used in format, I get the same thing.
Код:
new str[128];
format(str,sizeof(str),"Hi my name is \"%s\"!","herp");
SendClientMessage(playerid,-1,str);
That displays:
Код:
Hi my name is \"herp\"!
The script that has this issue was not written by me, I'm just temporarily managing it. (the issue was there before I modified the code)
Any suggestions?
Re: \ before ', \ instead of " -
BigGroter - 22.07.2013
Are you sure you didn't hit ALT + RSHIFT?
Re: \ before ', \ instead of " -
Seven_of_Nine - 22.07.2013
Completely sure.
Turns out rolling back the updates fixes the bug, but I can't find the reason still..
Re: \ before ', \ instead of " -
Seven_of_Nine - 22.07.2013
FOUND THE BUG
It was the chatlog:
Код:
mysql_real_escape_string(text,text);
NEVARR do this.