SA-MP Forums Archive
Escape codes. - 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: Escape codes. (/showthread.php?tid=601592)



Escape codes. - CSCripMa - 23.02.2016

Hi,

Here

https://sampwiki.blast.hk/wiki/Escape_codes

Backslash (\) is changing to \\ so everything i save string my string will get bigger and bigger? if it was that:

blabla\\\

Then after saving by:

blabla\\\\\\


Second save:

blabla\\\\\\\\\\\

?


Re: Escape codes. - Jefff - 23.02.2016

Yes, see here https://sampwiki.blast.hk/wiki/Escaping_Strings_SQLite you need have size * 2 or block special characters in string for player


Re: Escape codes. - CSCripMa - 23.02.2016

Block special characters how to do that? but i do i need really escape maybe i don't need do that?


Re: Escape codes. - Jefff - 23.02.2016

YES you need escape everyting what player can write into database


Re: Escape codes. - CSCripMa - 23.02.2016

Then how block special characters? because have i said and you said that slashes doubles everytime i save and this is really annoying.