15.07.2012, 22:47
I just had an idea regarding optimizing. Constant arrays could easily be replaced with defines using {...}
However I couldnt figure out a way to index these defined arrays.
However I couldnt figure out a way to index these defined arrays.
pawn Код:
({1,2,3})+1;
//error 033: array must be indexed (variable "-unknown-")
({1,2,3})[0]+1;
//error 029: invalid expression, assumed zero
{1,2,3}+1; {1,2,3}[0]+1;
//error 001: expected token: ";", but found "}"