13.06.2012, 13:57
I've released an updated version that adds proper support for multi-dimensional arrays in @ptr. Download at first page.
The rule of thumb here is when using @ptr for arrays with more than 1 dimension, the first dimension has to be inside @ptr[].
Example:
The rule of thumb here is when using @ptr for arrays with more than 1 dimension, the first dimension has to be inside @ptr[].
Example:
pawn Код:
new array[100][100];
main() {
new address = GetVariableAddress(array);
// WRONG:
@ptr[address][5][10] = 20;
// CORRECT (new):
@ptr[address, 5, 10] = 20;
// Also CORRECT:
@ptr[address, 5][10] = 20;
}