SA-MP Forums Archive
Breaking string lines inserting spaces - 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: Breaking string lines inserting spaces (/showthread.php?tid=655249)



Breaking string lines inserting spaces - FailerZ - 16.06.2018

Код:
printf("Hello \
		World");
Output:
Код:
Hello           World
I want it to output
Код:
Hello World
It used to be like above but since I have changed my laptop and installed sublime text 3 it is no longer.
Where the problem relies is it from the IDE or the compiler? I use Zeex compiler btw.


Re: Breaking string lines inserting spaces - FailerZ - 18.06.2018

Bump


Re: Breaking string lines inserting spaces - andrejc999 - 18.06.2018

Код:
printf("Hello \
World");
?


Re: Breaking string lines inserting spaces - FailerZ - 18.06.2018

Quote:
Originally Posted by andrejc999
Посмотреть сообщение
Код:
printf("Hello \
World");
?
It does work like this but i don't like the indentation, It should automatically ignore previous tabs


Re: Breaking string lines inserting spaces - andrejc999 - 18.06.2018

No it shouldn't.


Re: Breaking string lines inserting spaces - FailerZ - 18.06.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
This was a bug introduced in I believe 3.10.7, so don't use that version.
I reverted back to 3.10.5 and it works perfectly now!
The bug is in 3.10.6 and up
Thanks!

EDIT: The bug is in 3.10.7 only! I am very sorry i mistake it.
3.10.6 works fine!