what is #pragma compress 0 - 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: what is #pragma compress 0 (
/showthread.php?tid=672101)
what is #pragma compress 0 -
rockys - 27.01.2020
what is #pragma compress 0?
with what help me?
Re: what is #pragma compress 0 -
Markski - 28.01.2020
The "#pragma compress" directive toggles wether or not the compiler's generated bytecode will be in either compact or plain encoding. If the value is anything but zero, compact encoding is used, otherwise, plain encoding is used. Sometimes certain scripts may not compile if compact encoding is enabled, so if you saw this in a previously written script, that's likely the reason why that's there.
Read more under "Directives" in the
Pawn Language Document
Re: what is #pragma compress 0 -
rockys - 28.01.2020
So is recommanded to be 0?
Re: what is #pragma compress 0 -
Sasinosoft - 28.01.2020
Why would you want to change it, in the first place?
Re: what is #pragma compress 0 -
Markski - 28.01.2020
Quote:
Originally Posted by rockys
So is recommanded to be 0?
|
Certain scripts might not compile properly with compact encoding enabled. I reckon perhaps scripts which handle strings in one way or another, but not sure.
If your script compiles correctly, don't touch this directive.