stock/const/static/new array
#2

Well in theory you can use all 3 at the same time.
pawn Код:
static const stock gMyArray[3] = {1, ...};
Static declares a variable to that file only, it is invisible for all other files (for an include, maybe). Const declares the variable as constant, this means you cannot modify it (accidentally) with code (useful for arrays of coordinates that never change). Stock tells the compiler to ignore the variable if it is never referred to in the code.

More details, as said, in pawn_lang.pdf
Reply


Messages In This Thread
stock/const/static/new array - by MP2 - 26.09.2011, 13:16
Re: stock/const/static/new array - by Vince - 26.09.2011, 14:10
Re: stock/const/static/new array - by MP2 - 26.09.2011, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)