Quote:
Originally Posted by Lorenc_
pawn Код:
#define Array:%1<%2> %1[(%2) char] stock Array_Get(array[], index) return array{index};
Something small I did, tested it and it worked on a interger value. Quite handy for people wanting to keep there own scripts 'neat'.
Please do post problems ![Smiley](images/smilies/smile.png)
|
You may want to warn people that you won't be able to store values over 8 bits. You should also check to make sure the index is valid before returning it.