06.10.2015, 18:10
Quote:
I'm talking about CallRemoteFunction, and how strings/arrays are treated there. Not sure what you're on about..
There is no way for CallRemoteFunction to know the array size of a string, because it's not given to it; he only thing it knows is the string length. It allocates L+1 cells on the receiving AMX - not the size of the array holding the string. A char array is no different from any other array. The "char" keyword is the exact same thing as doing a ceildiv by 4. The {n} subscript is to read/write each byte of an array, as opposed to each cell. pawn Код:
|