Thread
:
[TUT] Packed vs Unpacked Strings
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
04-23-2009 , 11:20 Re: [TUT] Packed vs Unpacked Strings
#
10
If you only have one large string that you are trying to conserve space on then the packed approach will not work. Since packed strings can not be manipulated as a whole like unpacked strings can you must first unpack them into a normal unpacked string buffer. In your case this would require you to declare a packed MOTD buffer of 2500
new szMOTD[2500 char]
and then a buffer to unpack it
new szUnpackBuffer[2500]
which is obviously only going to create waste instead of reduce it. See the revised section above titled
But exactly how much memory does using a packed string save me?
__________________
Plugins
|
CSStats Editor
|
nVault Editor
Bugsy
View Public Profile
Send a private message to Bugsy
Find More Posts by Bugsy