SA-MP Forums Archive
Pragma - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Pragma (/showthread.php?tid=432366)



Pragma - iJumbo - 22.04.2013

pawn Код:
#pragma amxlimit
#pragma library
#pragma overlay
#pragma pack //does this affect some strings?
#pragma compress
There is something useful?


Re: Pragma - Bakr - 22.04.2013

1) http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf

2) Scroll to page 118


Re: Pragma - iJumbo - 22.04.2013

I know that thanks.. but i need some one explain me if this is useful on sa-mp pawn


Re: Pragma - MP2 - 22.04.2013

#pragma pack isn't in pawn-lang.pdf. Are you sure it exists?


Re: Pragma - iJumbo - 22.04.2013

yea :/ i think yes


Re: Pragma - Vince - 22.04.2013

#pragma pack just reverses the meaning of packed and unpacked strings. So instead of strings being unpacked by default, they are now packed by default. #pragma library is used in plugin includes to refer to the library (.dll/.so file) that contains the native functions. I believe #pragma amxlimit sets the maximum size the script can grow to. This is only useful when you have limited memory available; like on an embedded system.

I don't know what the rest does. But I doubt they're useful in any way.