Constant Arrays?
#1

Simple Question, can i declare constant array? And How?

I tried:
pawn Код:
const Array[5] = {1,2,...};
but it gives: error 001: expected token: "=", but found "["
I also tried:
pawn Код:
new const Array[5] = {1,2,...};
but it gives: error 008: must be a constant expression; assumed zero

When i declare a constant variable (example const var = 5 it doesn't give me error's

Am i doing something wrong?
Reply


Messages In This Thread
Constant Arrays? - by bilakispa - 12.03.2010, 17:28
Re: Constant Arrays? - by pen_theGun - 12.03.2010, 20:45
Re: Constant Arrays? - by bilakispa - 12.03.2010, 20:59
Re: Constant Arrays? - by pen_theGun - 12.03.2010, 21:24
Re: Constant Arrays? - by bilakispa - 12.03.2010, 22:45
Re: Constant Arrays? - by pen_theGun - 12.03.2010, 23:03
Re: Constant Arrays? - by bilakispa - 12.03.2010, 23:39
Re: Constant Arrays? - by pen_theGun - 12.03.2010, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)