View Single Post
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 04-22-2009 , 02:00   Re: [TUT] Packed vs Unpacked Strings
Reply With Quote #4

Quote:
Originally Posted by joaquimandrade View Post
But that's not the only thing you can do with packed strings (to save/use strings) as you can see in the last example.
Actually conversions will happen anyway. All pawn literals are cells, therefore they need to be truncated to fit in a packed string, and must be re-converted to cells when being used in any statement, AFAIK.

EDIT: Apparently I'm /partially/ wrong, there are special opcodes for packed chars, but still, if you try to use any cell values into expressions conversions have to happen. I'll look into the Pawn manual to see if there are better explanations on the subject.
__________________

Community / No support through PM

Last edited by danielkza; 04-22-2009 at 02:08.
danielkza is offline