what is #pragma compress 0
#1

what is #pragma compress 0?
with what help me?
Reply
#2

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
Reply
#3

So is recommanded to be 0?
Reply
#4

Why would you want to change it, in the first place?
Reply
#5

Quote:
Originally Posted by rockys
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)